#include using namespace std; int main(){ string str; int YinWen_num = 0, KongGe_num = 0, ShuZi_num = 0, Others_num = 0; cout<<"please input str:"<= 0 && str[i] - 'z' <= 0) || (str[i] - 'A' >= 0 && str[i] - 'Z' <= 0))YinWen_num++; else if(str[i] - '0' >= 0 && str[i] - '9' <= 0)ShuZi_num++; else if(str[i] == ' ')KongGe_num++; else Others_num++; } cout<<"YinWen_num is:"<