> while (ReadConsoleA(ih, &c, 1, &count, NULL) && (c != '\r') && (c != '\n'))
If you're expecting both \r and \n, then this loop will leave one of them behind.
Figure out which one comes last,...
Type: Posts; User: Salem
> while (ReadConsoleA(ih, &c, 1, &count, NULL) && (c != '\r') && (c != '\n'))
If you're expecting both \r and \n, then this loop will leave one of them behind.
Figure out which one comes last,...
> password = getPassword();
I see
string pass;
but no password.
Also, where is getPassword() implemented?
Does it leave the input stream in a nice clean state, like getline() does?
Or does...