Mail Archives: djgpp/1997/01/18/20:14:17
Daniel Boyer wrote:
>
> Ok, can somebody please tell me what is wrong with this line of code:
>
> for(char SIX = 'a'; SIX < '}'; SIX++)
> {
> .....
> }
>
> I keep getting a "parse error before ; " and if has to be in this
> line of code (there are only about three lines before it and they ARE
> correct. I have a number of lines like this one in the program and
> all of them are getting this error? What am I over looking?
Well, when I try compiling it, I get a "parse error before char", and
lots of other errors besides. That isn't valid C code.
I tried compiling it as C++ and got no errors, with a suitable statement
filling in the body of the for loop.
Is that example pasted in verbatim from your code? If not, could you
please do so?
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com |
| "Starting flamewars since 1993" | http://www.cs.com/fighteer |
| *** NOTICE *** This .signature is generated randomly. |
| If you don't like it, sue my computer. |
---------------------------------------------------------------------
- Raw text -