['a', 'z'] || ['A', 'Z'] 这是字母计数['0', '9'] 这是数字字符,一定要注意不是 [0,9], 数字和数字字符是不一样的[ ] 空格字符,上边三种以外就是其他字符了 #include <iostream> #include <string> using namespace std; int main() { int c1=0,c2=0,c3=0,c4=0; string arr; getline(cin,arr); for(auto ch:arr ) { if((ch>='a'&a...