c程序scanf 数字或者字符的问题

要在前面加一个空格 , 写作

scanf(" %d", &iUserChoice);

或者

scanf(" %c", &cPush);

原因见 : 

https://gsamaras.wordpress.com/code/caution-when-reading-char-with-scanf-c/

原文地址:https://www.cnblogs.com/lthxk-yl/p/8571899.html