Date: Mon, 1 Oct 2001 14:36:27 -0400 Message-Id: <200110011836.f91IaRQ01762@envy.delorie.com> From: DJ Delorie To: djgpp AT delorie DOT com CC: b279 AT inetone DOT net In-reply-to: (b279@inetone.net) Subject: Re: while loops and for loops References: Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > for (int i=1, i<100, i++) Semicolons, not commas. Like this: for (int i=1; i<100; i++) Also, if this is C you must declare the "int i" at the beginning of the block, not inside the for statement (C++ allows it the way you wrote it). > while(!kbhit()) > my statements; Yes, that looks right. Which keys are you pressing?