You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
776 B
46 lines
776 B
#include"main.h"
|
|
|
|
int range,kind,voice,dif;
|
|
date dates[4][11];
|
|
|
|
int main(void){
|
|
|
|
char choice;
|
|
srand(time(NULL));
|
|
|
|
load(1);
|
|
|
|
do{
|
|
|
|
printf("\n\n\n\n\n\n\t\t\t欢迎使用小学生测验\n\n");
|
|
printf("\t\t\t1.开始测验\n\n");
|
|
printf("\t\t\t2.排名\n\n");
|
|
printf("\t\t\t3.设置\n\n");
|
|
printf("\t\t\t4.退出\n\n");
|
|
printf("\t\t\t(输入选项前数字进行相应的操作)\n\n\t\t\t");
|
|
|
|
do{ //选择判断
|
|
|
|
choice=getch(); if(voice==1) printf("\a");
|
|
|
|
if(choice>='1'&&choice<='4'){
|
|
|
|
system("cls");
|
|
|
|
if(choice=='1') test(1);
|
|
if(choice=='2') record(1);
|
|
if(choice=='3') setting(1);
|
|
break;
|
|
|
|
}else printf("\n\t\t\t输入错误\n\n\t\t\t");
|
|
|
|
}while(choice!='4');
|
|
|
|
}while(choice!='4');
|
|
|
|
save(1);
|
|
|
|
return 0;
|
|
|
|
}
|