📅  最后修改于: 2022-03-11 14:44:44.981000             🧑  作者: Mango
switch(a) {
case -1:
std::cout << "a == -1" << std::endl;
break;
case 0:
std::cout << "a == 0" << std::endl;
break;
default:
std::cout << "a is something else" << std::endl;
}