From: "A. Sinan Unur" Newsgroups: comp.os.msdos.djgpp Subject: Re: Integer variables Date: Wed, 13 Aug 1997 19:44:46 -0400 Organization: Cornell University http://www.cornell.edu Lines: 23 Sender: asu1 AT cornell DOT edu (Verified) Message-ID: <33F246EE.3AEA@cornell.edu> References: <9707138715 DOT AA871517558 AT bcslgt DOT bcsl DOT com> Reply-To: asu1 AT cornell DOT edu NNTP-Posting-Host: cu-dialup-0077.cit.cornell.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Stanley Tsang wrote: > my integer variables. For some reason, when I assign it to any > value (i.e. 0 or 1) and then do a search in using an if loop to > test for a certain value, it just doesn't work. if you do not show us what you are doing, all we have is our mindreading capacity and that is not much! in any case, are you sure you are doing your comparison properly: if ( i == 1) rather than if (i = 1)? -- Sinan ******************************************************************* A. Sinan Unur WWWWWW |--O+O mailto:sinan DOT unur AT cornell DOT edu C ^ http://www.people.cornell.edu/pages/asu1/ \ ~/ *******************************************************************