void main()
{
int i,n;
while(1)
{//////////////////////////////////开始界面//////////////////////////////////////
system("cls");//清屏
gotoxy(30,6);
printf("1.start game?(y/n)");
gotoxy(30,8);
printf("2.Rule");
gotoxy(30,10);
printf("please choose:");
scanf("%d",&i);
switch(i)
{
case 1:
system("cls");
printf("please input n:\n");
scanf("%d",&n);
guess(n);
Sleep(2000);
break;
case 2://游戏规则
system("cls");
gotoxy(40,6);
printf("\n\n\n\t\tThe Rules OF The Game\n");
printf("step1:inpur of the number of difits\n");
printf("step2:input the number,separated by a apace between two number\n");
printf("step3:A represent location and data are correcr\n");
printf(" B represent location is correct but data is wrong!\n");
Sleep(10000);
break;
case 3:
// system("exit");
return;
default:
break;
}
}
}