Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. class BuildingSpace
  2. {
  3. private:
  4. ...
  5. std::unordered_map<std::string, Building> buildSp;
  6.  
  7. public:
  8. ...
  9. void displayBuilding(std::string name);
  10. };
  11.  
  12. void BuildingSpace::displayBuilding(string name)
  13. {
  14.  
  15. Building b=this->buildSP[name];
  16. //some output...
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement