Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

COD

By: a guest on Nov 20th, 2012  |  syntax: C++  |  size: 0.35 KB  |  views: 387  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }
clone this paste RAW Paste Data