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