⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 linked stack.h

📁 链式栈
💻 H
字号:
#include <iostream>
#include "node.h"

typedef char Stack_entry; 

enum Error_code {success,overflow,underflow};

class Linkedstack 
{
public:
	/*these are standard stack methods*/
	Linkedstack();
	bool empty()const;
	Error_code push(const Stack_entry & item);
	Error_code pop();
	Error_code top(Stack_entry & item)const;
	/*these are safety features for linked structures*/
	~Linkedstack();
	Linkedstack(const Linkedstack & original);
	void operator=(const Linkedstack & original);
protected:
    Node *top_node;
};

⌨️ 快捷键说明

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