#pragma warning(disable : 4996)
#include <stdio.h>
#include <stdlib.h>
#include<string.h>
typedef char elem;
typedef struct LinkList//考场中的学生
{
elem Sname[10];
elem Sno[10];
LinkList* Next;
}Node, * PNode;
typedef struct theLinkList//考场
{
elem Cname[20];
theLinkList* theNext;
LinkList* Next;
}theNode,*thePNode;
int Menu()
{
int key = 0;
elem pass[7];
elem thepass[7] = "123456";
while (true)
{
printf("++++++++++++++++++++++++++++++\n");
printf("++++++++ 考试排位系统 ++++++++\n");
printf("+ 选择身份 +\n");
printf("+ 1、管理员 +\n");
printf("+ 2、参考人员 +\n");
printf("++++++++++++++++++++++++++++++\n");
printf("输入选项:");
scanf("%d", &key);
if (key == 1)
{
system("cls");
printf("输入管理员密码:");
scanf("%s", pass);
if (!strcmp(pass, thepass))
{
return 1;
}
else
{
printf("密码错误!\n");
system("pause");
continue;
}
}
if (key==2)
{
return 2;
}
else
{
printf("输入错误!\n");
system("paus
c语言课程设计——基于链表的考场排位系统
于 2022-04-19 22:44:16 首次发布