//
// Created by on 2023/10/21.
//
#include <iostream>
using namespace std;
int main(){
//case后面必须是整数和字符,或者是结果为整数和字符的表达式,但不能使用变量。
printf("请输入超女的身材:");
int sc;
cin>>sc;
switch (sc) {
case 1:cout<<"111"<<endl;
break;
case 2:cout<<"222"<<endl;
break;
case 3:cout<<"333"<<endl;
break;
default:cout<<"未知"<<endl;
};
return 0;
}
发表回复