#include<iostream>
#include <stdio.h>
#include <ctype.h>
using namespace std;
int main(){
int a[26]={0};
int i;
char c;
while ((c=getchar())!='\n')
if (isalpha(c))
a[tolower(c)-'a']++;
for (i = 0; i<26; i++) {
printf("%c\t:\t%d\n",'a'+i,a[i]);
}
system("pause");
}
一位路过的卡咩来哒的博客输出一个数组中出现频率最高的数 */ import java.util.LinkedList; public class Main { static int first_value = 0;//第一个值 static int first_count =0;//计数 static int big_value=0;//次数最多的值 ...