Guest User

Untitled

a guest
Jan 23rd, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. class SymbolTable
  2. {
  3. public:
  4. SymbolTable() {}
  5. void insert(string variable, double value);
  6. double lookUp(string variable) const;
  7. void unusedVariableCheck();
  8. private:
  9. struct Symbol
  10. {
  11. Symbol(string variable, double value, bool used)
  12. {
  13. this->variable = variable;
  14. this->value = value;
  15. this->used = used;
  16. }
  17. string variable;
  18. double value;
  19. bool used;
  20. };
  21. vector<Symbol> elements;
  22. };
Add Comment
Please, Sign In to add comment