Mail Archives: djgpp/1997/06/13/01:05:00
HI,
>> int one == 1234;
>
>> The output will always be 5492 and not 1234. Why? What am I doing
>> wrong. It only happens on my own computer.
>
>it only happens on your own computer? really?
>it happens on my computer too!
Um, if you're trying to ASSIGN the number 1234 to the variable one, you have
to use the single '=' sign, as in: int one = 1234;
== is used for logical comparison, as in:
if (one == 1234)
/* do something here */
Bye!
****************************************************
* Gautam N. Lad *
*--------------------------------------------------*
* *
* E-Mail : gautam AT interlog DOT com *
* Website : http://www.interlog.com/~gautam *
* *
* OS/2, DOS/Windows, Graphics Gallery, Software, *
* Links, Rayzor Editor/2, POV-Ray, TexturEyes, *
* POV-PAK and lots lots lots more!!!!!!! *
****************************************************
- Raw text -