delorie.com/archives/browse.cgi | search |
Date: | Mon, 1 Oct 2001 14:36:27 -0400 |
Message-Id: | <200110011836.f91IaRQ01762@envy.delorie.com> |
From: | DJ Delorie <dj AT delorie DOT com> |
To: | djgpp AT delorie DOT com |
CC: | b279 AT inetone DOT net |
In-reply-to: | <trhd37bspfqaac@corp.supernews.com> (b279@inetone.net) |
Subject: | Re: while loops and for loops |
References: | <trhd37bspfqaac AT corp DOT supernews DOT com> |
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 |
> 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?
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |