delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/12/12:28:07

Date: Thu, 12 Jun 1997 12:27:18 -0400 (EDT)
From: Patrick <pjenki1 AT gl DOT umbc DOT edu>
To: Kristian Dorland <kdor AT geocities DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: what am I doing wrong.
In-Reply-To: <3399c3e5.7015538@nbisrv.nbi.dk>
Message-ID: <Pine.SGI.3.95.970612122641.8354A-100000@umbc10.umbc.edu>
MIME-Version: 1.0

On Sat, 7 Jun 1997, Kristian Dorland wrote:

> I have just installed djgpp for the first time, and I canīt create c-
> programs thatīs working properly. Every time I run a program compiled
> with djgpp, there is somthing wrong with the contents of the integers
> and the floatings. An example:
> 
> 
> main()
> 
>   {
>   int one == 1234;

The == is used to test for equality.  Use = to assign.  :)


>   printf("%d",one);
>   }
> 
> The output will always be 5492 and not 1234. Why? What am I doing
> wrong. It only happens on my own computer. Is there somthing wrong
> with the installation of djgpp. Please help me.
> 

---------------------------------------------------------------------------
Patrick         email:                      url:
Jenkins         pjenki1 AT gl DOT umbc DOT edu         http://www.gl.umbc.edu/~pjenki1
---------------------------------------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright Đ 2019   by DJ Delorie     Updated Jul 2019