stack.h

来自「此文件可以能帮你求体积」· C头文件 代码 · 共 28 行

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

#if !defined(AFX_STACK_H__A78BF131_18B2_452D_85FA_C84C449363B9__INCLUDED_)
#define AFX_STACK_H__A78BF131_18B2_452D_85FA_C84C449363B9__INCLUDED_

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

const int SIZE = 27;

class Stack  
{
public:
	char Pop();
	void Push( char ch );
	Stack();
	virtual ~Stack();

private:
	int tos;
	char stck[SIZE];
};

#endif // !defined(AFX_STACK_H__A78BF131_18B2_452D_85FA_C84C449363B9__INCLUDED_)

⌨️ 快捷键说明

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