C++官方推荐使用std::tr1::shared_ptr,弃用std::auto_ptr。 前者声明在memory头文件中。 SP1补丁下载链接:http://www.microsoft.com/zh-cn/download/details.aspx?id=10986