#include #include #include #include typedef struct exam_system//定义链表 { char problem[500]; char answer1[150]; char answer2[150]; char answer3[150]; char answer4[150]; char key; struct exam_system *next; }EXAM; void Answer(int n,EXAM *fp); //答题函数:负责整个选项一的模板 void Output(EXAM *fp,int i); //出题函数:负责依次调出题目 int Judge(EXAM *fp,char m); //判卷函数:负责判断回答与正确答案是否相同 void Input(EXAM *fp); //存题函数:负责依次输入题目 void Read(EXAM *fp); //文件函数,负责打开题库文件并指向指针 EXAM *create(EXAM *fp); //创建链表 EXAM *InsertNode(EXAM *head,EXAM*s); //插入链表 int main() { EXAM exam[20]; EXAM s; EXAM *head; int op,n; printf("\t\t**********单项选择题标准化考试系统**********\n"); printf("\t\t* 1.开始答题 *\n"); printf("\t\t* 2.更新题库 *\n"); printf("\t\t* 3.退出 *\n"); printf("\t\t********************************************\n"); printf("\t\t请输入选项:"); scanf("%d",&op); switch(op) { case 1: printf("请输入你需要的题量:"); scanf("%d",&n); Answer(n,&exam); break; case 2: system("cls"); Input(&s); head=createLinkedList(&exam); head=InsertNode(head,&s); break; case 3: exit(0); break; default:printf("ERROR!!PLEASE ENTER AGAIN!!"); } return 0; } void Answer(int n,EXAM *fp) { } void Output(EXAM *fp,int i) { } int Judge(EXAM *fp,char m) { } void Input(EXAM *fp) { } void ReadfromFile(EXAM *fp) { } EXAM *createLinkedList(EXAM *fp) { } EXAM *InsertNode(EXAM *head,EXAM*s) { }