From 24f46ff064f43632eb75c4af9435119525ef68e0 Mon Sep 17 00:00:00 2001 From: "2483890081@qq.com" <2483890081@qq.com> Date: Thu, 10 Jan 2019 10:43:37 +0800 Subject: [PATCH] 3 commit --- C语言五子棋课程设计代码-黄智.cpp | 150 ++++++++++++++++++ 结束界面函数.cpp | 27 ++++ 2 files changed, 177 insertions(+) create mode 100644 C语言五子棋课程设计代码-黄智.cpp create mode 100644 结束界面函数.cpp diff --git a/C语言五子棋课程设计代码-黄智.cpp b/C语言五子棋课程设计代码-黄智.cpp new file mode 100644 index 0000000..4fb99ec --- /dev/null +++ b/C语言五子棋课程设计代码-黄智.cpp @@ -0,0 +1,150 @@ +#include +#include +#include +#include +#define MAXIMUS 19 +#define W 0x1177 +#define S 0x1f73 +#define A 0x1e61 +#define D 0x2064 +int p[MAXIMUS][MAXIMUS]; +char buff[MAXIMUS*2+1][MAXIMUS*4+3]; +int Cx,Cy; +int Now; +int wl,wp; +char* showText; +int count; +int bye(); +int DoWin(int v); +char* Copy(char* strDest,const char* strSrc) +{ +char* strDestCopy = strDest; +while (*strSrc!='\0') +{ +*strDest++=*strSrc++; +} +return strDestCopy; +} +void Initialize() +{ +int i,j; +showText=""; +count=0; +for(i=0;i