码:
#include <stdio.h> int main() { long cn=1; char ch; while((ch=getchar())!=EOF) { printf("%ld\t%c\n",cn++,ch); } }
当我输入单词"secret"并点击输入时,显示数量最多为7而不是6,为什么?
c getchar
c ×1
getchar ×1