摘要: 基础模版:switch(int型变量){ case 整型常量: 执行语句;}#include <stdio.h> int main() { int x = 0; /*scanf("%d", &x);*/ scanf("%d", &x); switch (x) { case 1: printf("执行 阅读全文