Good way to flush scanf buffer when invalid entry entered

前端 未结 3 602
轻奢々
轻奢々 2021-01-23 20:18

I have been thinking of ways to flush bad entries in scanf functions to allow for loop prompts to do their job.

I have a function call here that flushes th

3条回答
提交回复
热议问题