hi,
i'm sure this is a pretty basic question. basically i have a function that's called within a loop. at the end of the function, i've placed
char c;
cout << "blah blah blah";
cin >> c;
cin.ignore(80, '\n');
however, the cin >> doesn't wait for the user's input. i've tested to see what's in the istream by printing out the int equivelant of char c. it's -1 every time.
any thoughts on this? many thanks in advance
..:: mirirom ::..
i'm sure this is a pretty basic question. basically i have a function that's called within a loop. at the end of the function, i've placed
char c;
cout << "blah blah blah";
cin >> c;
cin.ignore(80, '\n');
however, the cin >> doesn't wait for the user's input. i've tested to see what's in the istream by printing out the int equivelant of char c. it's -1 every time.
any thoughts on this? many thanks in advance
..:: mirirom ::..