linkedstack.h

来自「背包问题的解决」· C头文件 代码 · 共 18 行

H
18
字号
#ifndef LINKEDSTACK_H
#define LINKEDSTACK_H
#include "Node.h"

class linkedstack{
	public:
		linkedstack(){top=0;}
		~linkedstack();
		bool isempty()const{return top==0;}
		bool isfull()const;
		int Top()const;
		int last()const;
		linkedstack &Add(const int &x);
		linkedstack &Delete(int &x);
	private:
		Node *top;
};
#endif

⌨️ 快捷键说明

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