regex r("\d{1,100}"); //记得加头文件,规则匹配0~9的数字1至100次
string i;
while (1) {
std::cin >> i;if (regex_match(i, r) == false) { //std::regex_match,进行判断规则是否匹配cout << "匹配错误,请重新输入!!!!" << endl;continue;}else{break;}
}int choose = atoi(i.c_str());switch (choose)