i keep having "Statement missing ;" in lines 64, 78, 124, 138, 152 and "Compound statement missing }" on lines 274, 275
here's my code (it's kinda long but please help me) Hoping for replies. Thank you all in advance.
Here's the source code: C..C
i keep having "Statement missing ;" in lines 64, 78, 124, 138, 152 and "Compound statement missing }" on lines 274, 275
here's my code (it's kinda long but please help me) Hoping for replies. Thank you all in advance.
Here's the source code: C..C
Mate i am not surprised given the open close braces style you have adopted, its just a case of finding it yourself i would say, there is no magic here, the error is pretty verbose in this case, one could be causing the other to generate but i bet one or the other of them is literally true
Hold on maybe its a ton of other things too...like there are consitently no spaces in else..if
also its
int main()
Last edited by rogster001; 08-17-2011 at 09:42 AM.
Thought for the day:FLTK: "The most fun you can have with your clothes on.""Are you sure your sanity chip is fully screwed in sir?" (Kryten)
Stroustrup:
"If I had thought of it and had some marketing sense every computer and just about any gadget would have had a little 'C++ Inside' sticker on it'"
First there is no elseif keyword it should be else if (notice the space). Second you have some extra semicolons following your else if() clauses (before the opening braces).
Jim
Sorry, I just started in programming and I don't know the rule about having a ; after an else if statement. After I put ; on every else if, new errors came which denotes "Misplaced Else"
The reason you don't know such a rule is because that is the opposite of the rule: you are forbidden to have semicolons after else if.
well, the person above said after the else if clause.
eff. I misunderstood. D:
For future reference, for C questions post in the C board. This is the C++ board. The name at the top of the forum should give it away.