nickkkkkkk

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

2018年8月21日

摘要: #include int main() { int cnt[128]={0};//用来统计个数。 char str[200];//存储字符串。 int i; gets(str);//输入字符串。 for(i = 0; str[i]!='\0'; ++i)//遍历字符串。 cnt[str[i]]++;//统计... 阅读全文
posted @ 2018-08-21 10:01 nickkkkkkk 阅读(225) 评论(0) 推荐(0)