
string str="HELLO CHEN A DAI";
int strlen=str.length();
char alpha[26]={65};
int cnt[26]={0};
for(int i=1;i<26;i++)
{
________________________;
}
for(int i=0;i<26;i++)
{
cout<<alpha[i]<<" ";
}
cout<<endl;
for(int i=0;i<26;i++)
{
for(int j=0;j<strlen;j++)
{
if(alpha[i]==str[j])
{
cnt[i]++;
}
}
}
for(int i=0;i<26;i++)
{
cout<<cnt[i]<<" ";
}