Want more features on Pastebin? Sign Up, it's FREE!
Guest

usage

By: a guest on Feb 9th, 2011  |  syntax: C++  |  size: 0.17 KB  |  views: 43  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. //First
  2.  
  3. class X
  4. {
  5. public:
  6.         void* p;
  7.  
  8.         X() { p = NULL; }
  9. };
  10.  
  11. //Second
  12.  
  13. class X
  14. {
  15. public:
  16.         void* p;
  17.  
  18.         X() : p(NULL) { }
  19. };
  20.  
  21.  
  22. //...
  23.  
  24. X* x = new X();
clone this paste RAW Paste Data