Hehe,fflush(stdio) is a C style function. It is not suitable for C++.
:)
No, your explanation is wrong.
Yes, fflush(stdin) does not work.
No, it doesn't work even in C!
The reason is that fflush really does flushing only on output streams, and it ignores input stream. So even in C, you have to manually read input stream in order to flush it.
No, it doesn't work even in C!
The reason is that fflush really does flushing only on output streams, and it ignores input stream. So even in C, you have to manually read input stream in order to flush it.