I want to check Emptyness/not emptyness of input buffer;
When i try to read a something from stdin with cin it waits for user to write. I have to do some process when waiting for user. This is what i want to do.
1 2 3 4 5 6 7 8 9 10
while (true) {
if (cin is ready to read) {
cin >> x;
break;
}
// do something;
}