amazzzzzing

导航

2023年1月6日 #

智能指针

摘要: 智能指针 std::auto_ptr #include <iostream> #include <memory> int main() { std::auto_ptr<int> ptr(new int); std::auto_ptr<int> ptr1 = ptr; std::cout << ptr 阅读全文

posted @ 2023-01-06 22:49 amazzzzzing 阅读(43) 评论(0) 推荐(0)