www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/10/01/16:49:06

Message-ID: <3BB8D340.8626FF2F@earthlink.net>
From: Martin Ambuhl <mambuhl AT earthlink DOT net>
Organization: Nocturnal Aviation
X-Mailer: Mozilla 4.77 [en] (Win95; U)
X-Accept-Language: en,de-CH,fr,ru,zh-CN,ja
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: while loops and for loops
References: <trhd37bspfqaac AT corp DOT supernews DOT com>
Lines: 18
Date: Mon, 01 Oct 2001 20:31:48 GMT
NNTP-Posting-Host: 63.210.219.237
X-Complaints-To: abuse AT earthlink DOT net
X-Trace: newsread1.prod.itd.earthlink.net 1001968308 63.210.219.237 (Mon, 01 Oct 2001 13:31:48 PDT)
NNTP-Posting-Date: Mon, 01 Oct 2001 13:31:48 PDT
X-Received-Date: Mon, 01 Oct 2001 13:28:19 PDT (newsmaster1.prod.itd.earthlink.net)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

b279 wrote:
> 
> I can't get them to work correctly.
> 
> Problem 1:
> I have a for loop set up like this.
> 
> for (int i=1, i<100, i++)
>      my statements;
> 
> But I get an error when I try to compile.
> 
> Error: parse error before ')'  - or something like that.  What does it mean?
> I have my loop set up correctly.

No, you don't.  That's what it means: you *don't* have your loop set up
correctly.  Compare yours to:
    for (int i=1; i < 100; i++)

- Raw text -


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