|
-
September 29th, 2010, 08:53 AM
#2
Re: Error in function 'int main()":
[CODE]code tags please[/CODE]
What exactly is the error message? The ones I'm getting are pretty straight forward.
Your "login" is still not returning a bool. You say it should, but I don't see a return anywhere in it. That is one of the more subtle problems.
The other problems are big as trucks, and your compiler should tell you the problem in clear everyday English.
EDIT:
"In function 'int main()':" Means there is a problem in 'int main()'. Then, there's supposed to be the actual problem. Remember that an error message can span several lines...
Is your question related to IO?
Read this C++ FAQ article at parashift by Marshall Cline. In particular points 1-6.
It will explain how to correctly deal with IO, how to validate input, and why you shouldn't count on "while(!in.eof())". And it always makes for excellent reading.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|