# include <iostream>
using
namespace
std;
char
pl[256];
// 这里假设字符集是256个
void
main()
{
char
*p=
"jasodufosajfdsadnszkhahdfasdifoisjcs"
,
*t=p,max=0;
while
(*t){
max= ++pl[*t]>pl[max]?*t:max;
t++;
}
cout<<
"frequency of "
<< max <<
" is max: "
<< (
int
)pl[max] << endl;
}