今天太忙了 等会得去预习英语和高数 先把今天得switch 写下就完事
#include<stdio.h>
int main()
{
int type = 0;
scanf("%d",&type);
switch (type) {
case 1:printf("你好");
break;
case 2:printf("我好");
break;
default:printf("hahhah");
}
return 0;
}
break 的作用 我把它理解成一个 阻断器;