摘要:
/**统计字符串中包含单词的个数**/#define MaxSize 100#include<stdio.h>int cWords(char * str){int count = 0,flag = 5; //the initial value of flag should be larger than 2char * p = str;while(*p != '\0'){if(*p &g... 阅读全文
posted @ 2010-10-06 09:19 生无涯 阅读(177) 评论(0) 推荐(0) 编辑