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

📄 item.h

📁 一个在linux下的shell的计算器
💻 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 + -