关于字符计数的问题。程序代码:
#include <stdio.h>// count characters in input, 1st versionint main(void){ long nc; nc = 0; while (getchar()!= EOF) ++nc; printf("%ld\n", nc); getchar(); return 0;}
while (getchar()!= '\n') ++nc;