Jan 31, 2011 at 1:23am UTC
ok so i'm trying to run my program and i keep getting 3 errors. the first:
public:
if(cContinue != '0')
the error says "expecting unqualified-id before 'if' "
second:
return 0;
}
"expecting '}' at end of input"
third:
return 0;
}
" expecting unqualified-id at end of input"
i don't understand why these are here :[ can anyone help me?
i'm using codeblocks
Jan 31, 2011 at 1:36am UTC
You're going to have to paste the whole source for us to help in this case. Be sure to use [ code ]tags[ /code ]
Jan 31, 2011 at 2:04am UTC
Eh?
First, AFAIS, there's no object called cls that has a member called QueueEnter.
Second, you have an infinite while loop at line 40.
Third, everything under public
should be in a member function. I do hope you know how to deal with those.
Fourth, you're missing a semicolon at the end of your class declaration.
Fifth, you need an instance of your object to be able to use it.
I hate to be like this, but...are you sure you read the chapter on classes before trying this program?
-Albatross
Jan 31, 2011 at 2:12am UTC
im coming into the 3rd quarter trying to catch up. also as i stated this is a work in progress. and i just found out from my teacher he doesnt want us using classes so that makes me a much happier person :] thank you though for pointing all this out to me and i will mind it in the future