注册 登录
编程论坛 C++教室

求高手 帮忙给个棋盘的代码

allenz0810 发布于 2012-09-27 09:23, 309 次点击
求高手 忙吧给个棋盘的 代码 那个 只需要 棋盘 不需要其他的 信号
下面是哥头文件 希望高手帮忙写完其他的
#ifndef BOARD_H
#define Board_H

template <<class ItemType, int SIZE>
class Board
{
 friend std::ostream & operator<< <> (std::ostream &, const Board<ItemType, SIZE> &);
 private:
 ItemType Aboard[SIZE][SIZE];
public:
 int FormatSize;
 Board (ItemType);
 void Enter (Cell, ItemType);
 void Enter (int, int, ItemType);
 ItemType ValueIn(Cell);
 ItemType ValueIn(int, int);
  void PrintBoard(std::ostream &);
 void Reset(ItemType);
};
#endif
0 回复
1