📜  错误跳转到案例标签 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:33.545000             🧑  作者: Mango

代码示例1
switch (choice)
{
    case 1:
        {
            get_two_numbers(x, y);
            int sum = add(x, y);
            cout << x << " + " << y << " = " <<  sum << endl;
        }
        break;
    case 2:
        {
            get_two_numbers(x, y);
            int diff = subtract(x, y);
            cout << x << " - " << y << " = " <<  diff << endl;
        }
        break;
    default:
        break;
}