Ensuring you're reading a character through scanf

前端 未结 0 1896
执笔经年
执笔经年 2020-12-19 06:09

Is there a simple way to make sure you\'re reading a character through scanf. If it were an integer I\'d use a do while loop

      do{
        printf("en         


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