📄 item.h
字号:
/* * * * */#ifndef __ITEM_H#define __ITEM_H#include <iostream>#include <string>enum itemtype{ EMPTY, INTEGER, LOGICAL, REAL, STRING, OPERATION, LIST};std::string TypeName(itemtype t);class Item{ private: std::string name; protected: itemtype type; public: Item *prev, *next; // Item(); virtual ~Item(); itemtype GetType() const; // Virtual Methods virtual Item *Clone() = 0; virtual long ToInteger() const; virtual bool ToBoolean() const; virtual double ToDouble() const; virtual std::string ToString() const; // void SetName(std::string s); std::string GetName() const;};std::ostream & operator<<(std::ostream & stream, Item const & x);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -