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",单源单代BERT源码 &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-28 14:18
2024-12-28 13:53
2024-12-28 13:16
2024-12-28 12:54
2024-12-28 12:36
2024-12-28 12:05