cin,scanf

对于字符:cin的输入忽略空格和回车。scanf("%c",&i)等价于i = getchar(),换行符和回车都会被读入。
原文地址:https://www.cnblogs.com/wuxiaotianC/p/6445056.html