Search:

Type: Posts; User: Salem

Search: Search took 0.39 seconds.

  1. Thread: cin.get problem

    by Salem
    Replies
    3
    Views
    1,490

    > while (ReadConsoleA(ih, &c, 1, &count, NULL) &&...

    > 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,...
  2. Thread: cin.get problem

    by Salem
    Replies
    3
    Views
    1,490

    > password = getPassword(); I see string pass;...

    > 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...
Results 1 to 2 of 2