Monday, July 27, 2009

I need help with a c++ program please?

hey im getting some errors that i cant figure out how to solve


ifstream voter;


voter.open("ballot.txt");











while (!voter.eof()){


in this code im getting the following errors:


syntax error, missing ; before '.'


missing type specifier


'voter' redefenition


syntax error 'while'


missing ; before {





can someone help please im not sure how to solve they seem right to me

I need help with a c++ program please?
give it up kiddo.. you're not fit for the C++ program. try somethin else kiddo.
Reply:Without your whole code, this is a little tough, but I'd be willing to bet you are missing a semi-colon, a quote, a bracket, or a parenthesis.
Reply:missing: #include %26lt;fstream%26gt; ?
Reply:1011111000010011110001100000011?


Run the debug process, check the line code against MSDN properties.....sounds like a loop is ill-defined, use a more defined variable loop.


No comments:

Post a Comment