well is there a similar function in c++ ?
instead of getchar() in C i wanna use a similar function for c++ .
and how can i read the buffer from cin .. ?
(i know i can clear it with cin.clear() but i want to read it)
e.g with cin >> number if the user writes more characters after the number.
thanks in advance