delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/14/05:52:16

From: "A. Sinan Unur" <asu1 AT cornell DOT edu>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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/     \  ~/ 
*******************************************************************

- Raw text -


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