1 #include <stdio.h> 2 3 /* 4 给出一字符串指针,计算出字符串指针中单词数, 5 单词不包括'.',',',';','?','_','"',由0-9数字或26个字母组成 6 by zww @ 2013.09.26 7 vc 6.0编译通过 8 */ 9 10 unsigned int get_string_word_cnt(const char* pStr) 11 { 12 unsigned int iCnt= 0; 13 unsigned int iCharCnt = 0; 14 const char* p = pStr; 15 16 if (NULL == pStr) 17 { 18 return 0; 19 } 20 21 while ('