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?
rje7 2
Junior Poster in Training
Recommended Answers
Jump to PostNeither 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.
All 4 Replies
Ancient Dragon 5,243
Achieved Level 70 Team Colleague Featured Poster
rje7 2
Junior Poster in Training
Ancient Dragon 5,243
Achieved Level 70 Team Colleague Featured Poster
rje7 2
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.