stack.h

来自「基于专家系统应用的程序代码 使用vc编程,access为数据库的程序」· C头文件 代码 · 共 32 行

H
32
字号
// Stack.h: interface for the CStack class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_STACK_H__544C06A3_A370_4A4F_ACFE_F3F2517BC5E6__INCLUDED_)
#define AFX_STACK_H__544C06A3_A370_4A4F_ACFE_F3F2517BC5E6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

const int  Max=20;
class CStack  
{
private:
typedef struct stackNode
	{
		CString strData;
		stackNode* next;
	}stackList;
 stackList* header;
public:
	void destroyStack();
	CStack( );
	void push(CString str);
	CString pop();
	bool empty();
	virtual ~CStack();
};

#endif // !defined(AFX_STACK_H__544C06A3_A370_4A4F_ACFE_F3F2517BC5E6__INCLUDED_)

⌨️ 快捷键说明

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