怪事:统计不到空格和回车的个数…………

来源:互联网 发布:程序高级算法 编辑:程序博客网 时间:2024/05/29 13:53

#include <stdio.h>
main()
{
int c, nl;

nl = 0;
while ((c = getchar()) != EOF)
if (c == '/0'||c == '/t'||c == '/r')
        ++nl;
printf("%d/n", nl);
}

原创粉丝点击