⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 menu.c

📁 学生信息查询系统C语言实现 包含的功能有: 1、 系统功能选择菜单:提供了5个功能 A、 按“班级+平均成绩”显示原始数据 B、 输入学号
💻 C
字号:
/*系统进入菜单*/
void menu1()
{
 int i;

 clrscr();

 gotoxy(20,10);
 printf("Welcome to use the Student Data Management");
 gotoxy(30,14);
 printf("Writed by: Xiaofang Qiu");

 for(i=10;i<=70;i++)
    {
     gotoxy(i,5);
     printf("%c",016);
     gotoxy(i,20);
     printf("%c",016);
    }

 gotoxy(20,18);
 printf("Press to enter the management...");
 getch();
}

/*系统功能选择菜单*/
void menu2()
{
 int i;            /*循环变量*/
 char choose[3];   /*选择变量*/

 while(1)
   {
    clrscr();

    gotoxy(12,8);
    printf("Here are some functions you can choose:");
    gotoxy(14,10);
    printf("A---Display the primitive date;\n");
    gotoxy(14,11);
    printf("B---Search according to the student's number;\n");
    gotoxy(14,12);
    printf("C---Blur search according to one part of the student's name;\n");
    gotoxy(14,13);
    printf("D---Do grade statistics\n");
    gotoxy(14,14);
    printf("E---Exit\n");

    for(i=10;i<=70;i++)
       {
        gotoxy(i,5);
        printf("%c",126);
        gotoxy(i,20);
        printf("%c",126);
       }

    gotoxy(21,16);
    printf("Please select one to continue:");
    gotoxy(wherex()+1,wherey());
    scanf("%s",choose);

    if(!strcmp(choose,"A")||!strcmp(choose,"a")) printdata();
    else  if(!strcmp(choose,"B")||!strcmp(choose,"b")) keywords();
    else  if(!strcmp(choose,"C")||!strcmp(choose,"c")) instring();
    else  if(!strcmp(choose,"D")||!strcmp(choose,"d")) statistics();
    else  if(!strcmp(choose,"E")||!strcmp(choose,"e")) return;
    else  {
	    gotoxy(12,22);
	    printf("select error!!\n");
	  }

    gotoxy(12,24);
    printf("Press any key to continue!");
    getch();
   }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -