Can anyone tell me what this error is? Never saw it before my int main() is there but it keeps saying that. I also get changePassword was not declared in this scope , what does that mean?
In function 'int main()':
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
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 LITE 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.
Bookmarks