I'm just learning C++, so please dont tell me I'm stupid. I know I'm stupid, but anyway.
I'm writing a simple password program, using nothing but a while loop, cin and cout. It works fine, except when i try to enter two words as the password.
example(program output is in bold, i think):
Enter password:
foobar
Password accepted.
but when i run it and enter two words, it echos Enter password twice:
Enter Password:
foo bar
Enter password:
Enter Password:
any help would be appreciated. I'm using Dev-C++ on windows 98, if it matters. Thanks in advance.
bleach