Definitive C Input/Output Guide
Since the semester recently started a lot of similar questions regarding
IO in C (and C++) keep pouring in and the answers are often the same:
while(!feof()) is bad, use fgets() instead of scanf(), etc.
Do you think a community wiki is needed so all the duplicate questions
could be directed to that single answer? Or do you think they are still
sufficiently different so that those who ask would benefit from a question
tailored to their demands? Some just downvote and comment suggesting
posting on homework.stackexchange.com, but this doesnt't help.
After reading How should duplicate questions be handled? and What's the
etiquette for answering two similar questions? it seems to boil down to
the question how similar are two posts to be considered duplicate.
If you feel that most of the questions were indeed duplicates and that
this could grow into a community wiki page, please post your tricks of the
trade on IO in C including use, best practices, no-nos, notes on history
or implementation details and links to useful resources.
No comments:
Post a Comment