上传者: 38704284
|
上传时间: 2021-11-12 22:11:56
|
文件大小: 54KB
|
文件类型: -
尽量将面向对象的思想融入进程序中
ChessBoard.h
//ChessBoard.h
#pragma once
#define ROW 15
#define COL 15
#include
using namespace std;
class ChessBoard//棋盘类
{
public:
char m_cSquare[ROW][COL];
public:
ChessBoard();
void show();
};
ChessBoard.cpp
//ChessBoard.cpp
#include"ChessBoard.h"
ChessBoard::C