字符数量
#include<stdio.h>
main()
{char ch;
int a[26]={0},i;
while(scanf("%c",&ch)!=EOF)
{if(ch>='a'&&ch<='z')
{a[ch-97]++;}}
for(i=0;i<26;i++)
{if(a[i]!=0)
{printf("%c:%d\n",(char)(i+97),a[i]);}}}
main()
{char ch;
int a[26]={0},i;
while(scanf("%c",&ch)!=EOF)
{if(ch>='a'&&ch<='z')
{a[ch-97]++;}}
for(i=0;i<26;i++)
{if(a[i]!=0)
{printf("%c:%d\n",(char)(i+97),a[i]);}}}