[20050125] #include #include using namespace std; class display {public: display () {cout << "Start new a class display!" << endl;} ~ display () {COUT << "delete class display!" << endl;}};
INT main () {{boost :: scoped_ptr sp (new display ());} cout << "-------" << endl; return 0;} test results: start new a class display DELETE CLASS Display! -------