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.

64 lines
1018 B

6 years ago
#include"main.h"
void setting(int v){
char choice;
do{
printf("\n\n\n\n\n\n\t\t\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\n");
printf("\t\t\t1.<2E><>Χ<EFBFBD><CEA7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>> ");
if(range==0) printf("100<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\n");
else printf("1000<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\n");
printf("\t\t\t2.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>> ");
if(kind==0) printf("<EFBFBD>Ӽ<EFBFBD>\n\n");
else printf("<EFBFBD>˳<EFBFBD>\n\n");
printf("\t\t\t3.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>> ");
if(voice==0) printf("<EFBFBD><EFBFBD>\n\n");
else printf("<EFBFBD><EFBFBD>\n\n");
printf("\t\t\t4.<2E><><EFBFBD>ز˵<D8B2>\n\n");
do{ //ѡ<><D1A1><EFBFBD>ж<EFBFBD>
choice=getch();
if(choice>='1'&&choice<='4'){
if(choice=='1'){
range++;
range%=2;
}
if(choice=='2'){
kind++;
kind%=2;
}
if(choice=='3'){
voice++;
voice%=2;
}
if(voice==1) printf("\a");
break;
}else printf("\n\t\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\n\t\t\t");
}while(choice!='4');
system("cls");
}while(choice!='4');
dif=0;
if(range==1) dif+=2;
if(kind==1) dif++;
}