#include // write your code here...... #include using namespace std; #include int main() { string str; getline(cin,str); // write your code here...... mapm; int i = 0; while (str[i] != ' ') { if (isalpha(str[i])) { m[str[i]]++; i++; } else { i++; } } for (auto i = m.begin(); i != m.end(); i++) { cout << i->first << ":" << i->second << endl; } return 0; }
上一篇 pycharm中测试的三种模式(unittest框架、pytest框架、普通模式)
下一篇 Django 用户退出登陆
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号