#include #include using namespace std;#define WIDE_AND_LONG 20 /棋盘的长和宽#define NAME_LEN 20 /输入姓名的长度typedef class Gobang public: int InitPlayerName(char *, char *); int CheckInput(char,int); int CheckIndexInput(char, char, char); int GetPlayerName(); int InitBoard(); int WriteBoard(char, char, bool); int BeginOrNot(); int CheckRow(); int CheckColumn(); int CheckTopLeft(); int CheckTopRight(); int CheckDownLeft(); int CheckDownRight();