#include <iostream> #include <string> using namespace std; //不区分大小写 int main() { string str; char s; int count = 0; //cin不能判断空格,换成getline(cin,str) //cin>>str; getline(cin, str); cin >> s; for (int i = 0; i < str.size(); i++) { //由于不知...