这可以换一种表达,代码如下(附结果):
#include<stdio.h> int main(){ int nc=0; while(getchar()!=EOF){ nc++; } printf("%d",nc); return 0; }
如果对此有疑问,欢迎私信我。
大佬有问题吗?