Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. class Example {
  2. private:
  3. std::string name;
  4. Example::Age variable; //I dont know if this is okay
  5. public:
  6. enum Age{Young,Old};
  7. Example(std::string nam,variable a) : name(nam) {
  8. a=Young; //I dont know if this is okay
  9. }
  10. .....
  11. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement