From f10be4b679c964754f6c2991a3f61872a5b53c9b Mon Sep 17 00:00:00 2001 From: "2483890081@qq.com" <2483890081@qq.com> Date: Wed, 9 Jan 2019 13:18:18 +0800 Subject: [PATCH] 2 commit --- DoWin选择是否再来一局函数.cpp | 34 +++++++++++++++++++++++++ Initialize初始化函数.cpp | 34 +++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 DoWin选择是否再来一局函数.cpp 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)