Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #if !defined(DATABASE)
- #define DATABASE
- ///////////////////////////////////////////////////////////
- class num_culc {
- private:
- int32_t value;
- bool init;
- public:
- int8_t num_sys;
- //---------------------------------------------------------
- num_culc() : value(0) , num_sys(10), init(false)
- { /* ... */ }
- num_culc(int32_t vl, bool in) : value (vl) , num_sys(10), init(in)
- { /* ... */ }
- //---------------------------------------------------------
- num_culc operator+ (num_culc);
- num_culc operator- (num_culc);
- num_culc operator* (num_culc);
- num_culc operator/ (num_culc);
- num_culc& operator= (int32_t);
- num_culc& operator= (string);
- friend ostream& operator<< (ostream&, const num_culc&);
- num_culc& operator[] (int8_t);
- //---------------------------------------------------------
- };
- ///////////////////////////////////////////////////////////
- class calculate {
- private:
- // Хранит имена переменных и их значения
- unordered_map<string, num_culc> vars;
- public:
- num_culc& operator[] (const string&);
- };
- ///////////////////////////////////////////////////////////s
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement