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-12-24 00:40
2024-12-24 00:34
2024-12-23 23:19
2024-12-23 22:59
2024-12-23 22:22