ftp.delorie.com/archives/browse.cgi | search |
Newsgroups: | comp.os.msdos.djgpp |
From: | Peter Berdeklis <peter AT atmosp DOT physics DOT utoronto DOT ca> |
Subject: | Re: for loop problem |
Message-ID: | <Pine.SGI.3.91.970120203223.8259A-100000@chinook.physics.utoronto.ca> |
Nntp-Posting-Host: | chinook.physics.utoronto.ca |
Sender: | news AT info DOT physics DOT utoronto DOT ca (System Administrator) |
Mime-Version: | 1.0 |
Organization: | University of Toronto - Dept. of Physics |
In-Reply-To: | <32e11fa9.92123011@redwood.cs.sc.edu> |
Date: | Tue, 21 Jan 1997 01:34:43 GMT |
References: | <32e11fa9 DOT 92123011 AT redwood DOT cs DOT sc DOT edu> |
Lines: | 20 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
On Sat, 18 Jan 1997, Daniel Boyer wrote: > Ok, can somebody please tell me what is wrong with this line of code: > > for(char SIX = 'a'; SIX < '}'; SIX++) > { > ..... > } Nothing. (Unless this is a C program, in which case you cannot declare SIX within the loop. But then you would get a parse error at before char, not ;) Check that you haven't got a macro named SIX, or that you haven't missed a ; at the end of the last line. Post more of your code. --------------- Peter Berdeklis Dept. of Physics, Univ. of Toronto
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |