Posted on 2008-10-16 20:12
山泉弯延 阅读(859)
评论(0) 编辑 收藏 引用
#include <iostream>
#include <String>
using namespace std;
class ia{
public:
ia(string a){this->a=a;}
~ia(){cout<<"~"<<a<<endl;getchar();}
private:
string a;
};
int main()
{
auto_ptr<ia> ap(new ia("newplan"));
ia *bp = new ia("zhaoziming");
return 1;
}