delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/24/09:46:46

From: "Matthew W. Waters" <no_spam_please_mattwaters AT naplesnet DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Loop Integers don't Work.
Date: 23 Apr 1998 22:30:28 GMT
Organization: CMDS News machine
Lines: 20
Message-ID: <01bd6f07$39dbc400$684be9c7@mattwaters>
NNTP-Posting-Host: dialup5.naplesnet.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Here's the promblem whenever I declare integers for looping, it gives me an
error that says "parse error before int".  Here's a few examples of loops
I've tried(^ tells where it says the error is):

for(int i = 0; i < 10; i++) {
       ^
...
};

int done = 0;
  ^
while(!done) {
...
}

Please E-mail me the answer if you have it.
-- 
Don't press the reply button to e-mail me.  Instead E-mail to
mattwaters AT naplesnet DOT com

- Raw text -


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