diff --git a/DoWin选择是否再来一局函数.cpp b/DoWin选择是否再来一局函数.cpp new file mode 100644 index 0000000..ed43a22 --- /dev/null +++ b/DoWin选择是否再来一局函数.cpp @@ -0,0 +1,34 @@ +DoWin(int v) +{ + int n; + Initialize(); + system("cls"); /**/ + system("color F0"); /*ɫ*/ +if(v==1) +printf(" ڷʤ \n"); +if(v==2) +printf(" ׷ʤ \n"); +printf("\n\n\tX[\n"); +printf("\tU U\n"); +printf("\tU U\n"); +printf("\tU U\n"); +printf("\tU U\n"); +printf("\tU U\n"); +printf("\tU U\n"); +printf("\tU һ U\n"); +printf("\tU U\n"); +printf("\tU U\n"); +printf("\tU U\n"); +printf("\tU 1 U\n"); +printf("\tU U\n"); +printf("\tU U\n"); +printf("\tU U\n"); +printf("\tU U\n"); +printf("\tU 2 U\n"); +printf("\tU U\n"); +printf("\tU U\n"); +printf("\t^a\n"); +scanf("%d",&n); +if(n==1) +printf("밴"); +if(n==2) diff --git a/Initialize初始化函数.cpp b/Initialize初始化函数.cpp index 002a48a..0bf6108 100644 --- a/Initialize初始化函数.cpp +++ b/Initialize初始化函数.cpp @@ -74,3 +74,37 @@ printf("\t printf("\t^TTTTTTTTTTTTTTTTTTa\n"); getch(); } +DoWin(int v) +{ + int n; + Initialize(); + system("cls"); /**/ + system("color F0"); /*ɫ*/ +if(v==1) +printf(" ڷʤ \n"); +if(v==2) +printf(" ׷ʤ \n"); +printf("\n\n\tX[\n"); +printf("\tU U\n"); +printf("\tU U\n"); +printf("\tU U\n"); +printf("\tU U\n"); +printf("\tU U\n"); +printf("\tU U\n"); +printf("\tU һ U\n"); +printf("\tU U\n"); +printf("\tU U\n"); +printf("\tU U\n"); +printf("\tU 1 U\n"); +printf("\tU U\n"); +printf("\tU U\n"); +printf("\tU U\n"); +printf("\tU U\n"); +printf("\tU 2 U\n"); +printf("\tU U\n"); +printf("\tU U\n"); +printf("\t^a\n"); +scanf("%d",&n); +if(n==1) +printf("밴"); +if(n==2)