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 :...
Type: Posts; User: Rodrigo Salazar
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 :...
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...