From: "Jesper Lund" Newsgroups: comp.os.msdos.djgpp References: 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: 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 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++)