daily pastebin goal
50%
SHARE
TWEET

ctor demo

Archon Feb 3rd, 2011 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Car{
  2.    int x;
  3.    int *p;
  4.  
  5.    Car(int arg){
  6.       x = arg;
  7.       p = new int;
  8.       *p = arg;
  9.    }
  10.  
  11.    ~Car(){
  12.       delete p;
  13.    }
  14. };
RAW Paste Data
Top