Program doesn't execute gets() after scanf(), even using fflush(stdin)

后端 未结 5 1557
不思量自难忘°
不思量自难忘° 2020-12-01 22:54

After wasting too much time searching why my program doesn\'t execute gets() after using scanf(), I found a solution which is to use fflush(stdin) after scanf() to enable ge

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