0

dear all, wat should i do to clear the input buffer stream?
and also make me clear regarding flush and fflush. both do the same functions?

2
Contributors
4
Replies
5
Views
9 Years
Discussion Span
Last Post by rje7
0

Neither flush() nor fflush() are used on input streams. Read this for how to flush input streams.

>>both do the same functions
Yes -- flush() is used by c++ streams in <fstream> and fflush() is used by C streams declared in <stdio.h>. Both flush the output stream.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.