📅  最后修改于: 2022-03-11 15:02:01.440000             🧑  作者: 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;
}