生无涯

吾生也有涯,而知也无涯,以无涯随有涯,乐以忘忧,生亦无涯矣www.cnblogs.com/shengwuya
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2010年10月6日

摘要: /**统计字符串中包含单词的个数**/#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) 编辑