From: gautam AT interlog DOT com (Gautam N. Lad) Newsgroups: comp.os.msdos.djgpp Subject: Re: what am I doing wrong. Date: Sun, 08 Jun 97 13:18:18 GMT Organization: InterLog Internet Services Lines: 29 Message-ID: <5nflet$gh3@news.interlog.com> References: <3399c3e5 DOT 7015538 AT nbisrv DOT nbi DOT dk> <339B292C DOT 2EA AT primenet DOT com> NNTP-Posting-Host: ip203-80.cc.interlog.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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!!!!!!! * ****************************************************