1 #include <iostream> 2 using namespace std; 3 4 char lmf(char *pString) 5 { 6 if(!pString) 7 { 8 return 0; 9 } 10 //定义并初始化hash表 11 unsigned int hash[256] = {0}; 12 13 char *pHashKey = pString; 14 //根据字符串,计数!!! 15 while(*pHashKey != '