stack.cpp

来自「围棋游戏」· C++ 代码 · 共 34 行

CPP
34
字号
// Stack.cpp: implementation of the Stack class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "chess.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////


BOOL Stack::Empty()
{
  if(elem.GetCount==0)return(TRUE);
  else return(FALSE);
}

void Stack::Push(MyChess * chess)
{
  elem.AddTail(chess);
}

MyChess* Stack::POP()
{

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?