2012年10月23日

统计一个字符串中各个英文单词的出现的频数

摘要: #include<iostream.h>#include<string.h>#include<stdlib.h>void main(){ char destr[]=" hello hello sfs che heloo dsljd hello hello "; int num=1; char *p=destr; while(*p!='\0') { if(*p>='A'&&*p<='Z') { *p=*p-'A'+'a'; } if( 阅读全文

posted @ 2012-10-23 23:31 为梦飞翔 阅读(3423) 评论(0) 推荐(0)

导航