1.C语言输出如下菜单
C语言输出如下菜单
大致代码如下#include <stdio.h>#include <stdlib.h>
void menu()
{
printf ("\t 主菜单\n");
printf ("===============================\n");
printf ("\t1.输出学生成绩\n");
printf ("\t2.查询学生成绩\n");
printf ("\t3.打印学生成绩\n");
printf ("\t0.退出系统\n");
printf ("===============================\n");
}
int main()
{
int operation;
menu();
scanf("%d",单源单代核爆手游源码 &operation);
switch(operation){
case 1:
printf ("请输入\n");
break;
case 2:
printf ("请输入查询学生学号\n");
break;
case 3:
printf ("正在输出\n");
break;
case 0:
printf ("谢谢使用\n");
break;
default:
printf ("输入错误\n");
break;
}
return 0;
}
2024-11-29 06:26
2024-11-29 06:06
2024-11-29 06:04
2024-11-29 05:37
2024-11-29 04:46
2024-11-29 04:32