calc.h

来自「《c++ 实践之路》光盘中的源代码」· C头文件 代码 · 共 20 行

H
20
字号
#if !defined (CALC_H)
#define CALC_H
// (c) Bartosz Milewski 2000
#include "Stack.h"
#include "Input.h"

class Calculator
{
public:
	bool Execute (Input const & input);
	// give access to the stack
	IStack const & GetStack () const { return _stack; }
private:
	int Calculate (int n1, int n2, int token) const;

	IStack  _stack;
};

#endif

⌨️ 快捷键说明

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