2012年5月8日
摘要: #include "stdafx.h"#include"stdio.h"void main(){ int n1,n2,n3; while(getchar()!=EOF) if(getchar()==' ') n1++; if(getchar()=='\t'||'\v') n2++; if(getchar()=='\n') n3++; printf("空格有%d个,制表符有%d个,换行符有%d\n",n1,n2,n3);} 编写一个统计空格,制表符和换行符个数的程序,程序. 阅读全文
posted @ 2012-05-08 21:22 迷·程 阅读(779) 评论(3) 推荐(1)