|
Simple Code Problem
I have problems compiling because of lines 28, 37, 51, and 54. Can anyone help?
-----------------------
Hail to the king, baby.
Edited by - Squeejee on May 16, 2001 6:35:51 PM
-----
No ... we can''t help you
POST THE EXACT ERROR MESSAGE!
When you seperate out just a piece of a program ... it is IMPOSIBLE to know what the cause of an UNKNOWN error is. Example ... do you have a using namespace std; line in your code? If not, then the cout in line 52 would be invalid ... etc etc ... post the WHOLE program AND the error messages if possible ... if not at least post the error messages.
POST THE EXACT ERROR MESSAGE!
When you seperate out just a piece of a program ... it is IMPOSIBLE to know what the cause of an UNKNOWN error is. Example ... do you have a using namespace std; line in your code? If not, then the cout in line 52 would be invalid ... etc etc ... post the WHOLE program AND the error messages if possible ... if not at least post the error messages.
Line 28: parse error before `{'
Line 37: parse error before `while'
Line 51: syntax error before `<'
Line 54: parse error before `}'
And that IS the whole program.
Edited by - Squeejee on May 16, 2001 6:29:27 PM
Line 37: parse error before `while'
Line 51: syntax error before `<'
Line 54: parse error before `}'
And that IS the whole program.
Edited by - Squeejee on May 16, 2001 6:29:27 PM
-----
Why are you putting :: infront of all of those variables? It isn''t needed. Also, instead of "char getchar();" write "getchar();". And DSutherland is correct about the braces.
![Resist Windows XP''s Invasive Production Activation Technology!](http://druidgames.warfactory.com/Out_Source/resist.jpg)
http://druidgames.cjb.net/
![Resist Windows XP''s Invasive Production Activation Technology!](http://druidgames.warfactory.com/Out_Source/resist.jpg)
http://druidgames.cjb.net/
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement