scanf issue: input of integer followed by character, ex: 1p, for a single input is treated as 2 inputs

后端 未结 0 1900
醉梦人生
醉梦人生 2021-01-26 02:05

I know that scanf sucks but I have to use it for some reasons. So, the problem I\'m facing right now is that if I\'m scanning a single integer from the user as follow:

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题