Help with error message.

C

C++Begginner

expected primary-expression before "else"
I keep getting that error message, and after that it says (for the same
line)
expected ";" before "else"
The problem is that I have the ; and it still keeps popping up as an
error message when I try to compile it. Does anyone know what I should
do?
 
V

Victor Bazarov

C++Begginner said:
expected primary-expression before "else"
I keep getting that error message, and after that it says (for the
same line)
expected ";" before "else"
The problem is that I have the ; and it still keeps popping up as an
error message when I try to compile it. Does anyone know what I should
do?

Post the damn code so we can see what you've done wrong.

V
 
J

JustBoo

Post the damn code so we can see what you've done wrong.

V

So how long have you been working for the Government V?

Senor Ferrari: "As the leader of all illegal activities in
Casablanca, I am an influential and respected man."
 
M

Mike Wahler

C++Begginner said:
expected primary-expression before "else"
I keep getting that error message, and after that it says (for the same
line)
expected ";" before "else"
The problem is that I have the ; and it still keeps popping up as an
error message when I try to compile it. Does anyone know what I should
do?

Fix your code.

Hopefully, you'll find my answer as useful to you
as your question was for me in answering it.

-Mike
 
R

red floyd

C++Begginner said:
expected primary-expression before "else"
I keep getting that error message, and after that it says (for the same
line)
expected ";" before "else"
The problem is that I have the ; and it still keeps popping up as an
error message when I try to compile it. Does anyone know what I should
do?

You have errors on lines 4, 8, 15, 16, 23, and 42.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top