auto_ptr

来源:互联网 发布:数据库中升序排列 编辑:程序博客网 时间:2024/06/01 07:56
#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;
}
                                             
0 0