@root我哪儿错了?

12121 Game for peace 2024-05-25 15:18:30 2024-05-26 14:38:24 26
#include <iostream>
#include <ctime>
#include <cstdlib>
using namespace std;
int main() {
    int n;
    cin >> n;
    switch (n) {
        case 1:
            cout << "寿仙姑";
            break;
        case 2:
            cout << "酒糟芋";
            break;
        case 3:
            cout << "下山笋";
            break;
        case 4:
            cout << "太师豆腐";
            break;
        case 5:
            cout << "孝子鱼";
            break;
        case 6:
            cout << "猪全福";
            break;
        default:
            cout << "无此编号的菜";
            break;
    }
    return 0;
}
{{ vote && vote.total.up }}

共 3 条回复

xueruogu

字打错了

root 站长

寿仙菇打错了,你写了个寿仙姑

root 站长
c++代码