Advertisement
Guest User

COD

a guest
Nov 20th, 2012
616
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. struct NameC
  2. {
  3.   int increment() const { return 0; }
  4. };
  5.  
  6. struct CallofDuty
  7. {
  8.   CallofDuty(int) {}
  9. };
  10.  
  11. struct Game
  12. {
  13.   CallofDuty *p;
  14.   Game(CallofDuty *p_) : p(p_) {}
  15.   void launch() const {}
  16.   ~Game() { delete p; }
  17. };
  18.  
  19. NameC Name;
  20.  
  21. int main(int argc, char **argsv)
  22. {
  23.   Game game = new CallofDuty(Name.increment());
  24.   game.launch();
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement