1 #include<stdio.h> 2 int main() 3 { 4 char *ppp= "aaassadddeeds"; 5 char c[255] = {0};//存放字符 6 uint32 ccnt[255] = { 0 };//存放字符对应的个数 7 char *t = NULL; 8 t = ppp; 9 uint32 index_i = 0; 10 uint32 count = 0;//总字符的个数 11 uint32 cnt = 0;//字符的种类数 12 while (*t != '