把数字字符转换为ACSII码
把ACSII码转换为数字
/*第一种写法*/
for(int i = 0;i < str1.length();i++){
if(str1[i] >= 'a' && str1[i] <= 'z'){
arr1[(int)(str1[i])]++;
}
}
/*第二种写法*/
for (int i = 0; i < s.length(); i++)
if (islower(s[i])) a[s[i] - 'a']++;
/*输出一*/
printf("%c %d",maxx,temp);
/*输出二*/
printf("%c %d", t + 'a', max);