Search:

Type: Posts; User: Rodrigo Salazar

Search: Search took 0.01 seconds.

  1. By the way, this is what I tried when I attempted...

    By the way, this is what I tried when I attempted to use cin.peek(), with no success. getline still manages to block.



    while(true)
    {
    bool cinready = cin.peek() == EOF ? false :...
  2. I need to loop getline forever, but only let getline block when necessary. Solution?

    Hello!

    So my problem is this, my program has a getline(cin, stringvar) within a while(true) loop and I want to do other tasks if getline doesn't have any input to read from cin, instead of just...
Results 1 to 2 of 2