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

From: "Jesper Lund" <jl1204 AT worldonline DOT dk>
Newsgroups: comp.os.msdos.djgpp
References: <trhd37bspfqaac AT corp DOT supernews DOT com>
Subject: Re: while loops and for loops
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Message-ID: <uU3u7.153$%D3.29278@news000.worldonline.dk>
Date: Mon, 1 Oct 2001 21:48:32 +0200
NNTP-Posting-Host: 212.54.79.117
X-Complaints-To: news-abuse AT wol DOT dk
X-Trace: news000.worldonline.dk 1001966234 212.54.79.117 (Mon, 01 Oct 2001 21:57:14 MET DST)
NNTP-Posting-Date: Mon, 01 Oct 2001 21:57:14 MET DST
Organization: Customer of Tiscali A/S (World Online)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

b279 <b279 AT inetone DOT net> wrote in message
news:trhd37bspfqaac AT corp DOT supernews DOT com...
> 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.
>

This should be (semicolon instead of comma)
    for (int i = 1; i < 100; i++)


- Raw text -


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