#include <iostream>
#include <memory>//
using namespace std;
int main()
{
auto_ptr<string> ps(new string("jjhou"));
cout<< *ps <<endl;
cout<< ps->size() <<endl;
cout << "Hello World!" << endl;
return 0;
}
#include <iostream>
#include <memory>//
using namespace std;
int main()
{
auto_ptr<string> ps(new string("jjhou"));
cout<< *ps <<endl;
cout<< ps->size() <<endl;
cout << "Hello World!" << endl;
return 0;
}