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.
38 lines
1.4 KiB
38 lines
1.4 KiB
DoWin(int v)
|
|
{
|
|
int n;
|
|
Initialize();
|
|
system("cls"); /*清屏*/
|
|
system("color F0"); /*设置颜色*/
|
|
if(v==1)
|
|
printf(" 黑方获得了胜利! \n");
|
|
if(v==2)
|
|
printf(" 白方获得了胜利! \n");
|
|
printf("\n\n\t╔──────────────────╗\n");
|
|
printf("\t║如 ║\n");
|
|
printf("\t║ 果 ║\n");
|
|
printf("\t║ 还 ║\n");
|
|
printf("\t║ 想 ║\n");
|
|
printf("\t║ 在 ║\n");
|
|
printf("\t║ 来 ║\n");
|
|
printf("\t║ 一 ║\n");
|
|
printf("\t║ 局 ║\n");
|
|
printf("\t║ 请 ║\n");
|
|
printf("\t║ 输 ║\n");
|
|
printf("\t║ 1 ║\n");
|
|
printf("\t║ 离 ║\n");
|
|
printf("\t║ 开 ║\n");
|
|
printf("\t║ 请 ║\n");
|
|
printf("\t║ 输 ║\n");
|
|
printf("\t║ 2 ║\n");
|
|
printf("\t║ ║\n");
|
|
printf("\t║ ║\n");
|
|
printf("\t╚━━━━━━━━━━━━━━━━━━╝\n");
|
|
scanf("%d",&n);
|
|
if(n==1)
|
|
printf("请按任意键继续");
|
|
if(n==2)
|
|
if(n==2)
|
|
bye();
|
|
}
|