Guest User

Untitled

a guest
Oct 20th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. #ifndef MEMORIA_h
  2. #define MEMORIA_h
  3.  
  4. #include <iostream>
  5. #include <utility>
  6. #include <map>
  7. #include <string>
  8. #include "Comando.h"
  9.  
  10. using namespace std;
  11.  
  12. class Memoria{
  13. private:
  14.     static map<string,Comando*> *labels;
  15.     static map<string,string> *var;
  16. public:
  17.     static string getVariavel(string variavel);
  18.     static void setVariavel(string variavel,string valor);
  19.     static Comando* getLabel(string label);
  20.     static void setLabel(string label,Comando *comando);
  21. };
  22.  
  23. #endif
Add Comment
Please, Sign In to add comment