shared_ptr类//可以像vector那样动态添加元素吗?!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [解决办法]ptr使用来管理一个对象的,管理多个对象可以用std::vector<std::unique_ptr<>>或者boost::ptr_vector<>