分模块写比较繁琐,代码量较多,不过不容易出问题,也容易调试。 #include <iostream> #include <cstring> using namespace std; void get_card(string &left, string &right) { string s; getline(cin, s); int i = s.find('-'); left = s.substr(0, i); right = s.substr(i+1, s.length()); } typedef enum {...