智能指针:auto_ptr与unique_ptr对比分析.pdfVIP

  • 1
  • 0
  • 约9.63千字
  • 约 6页
  • 2026-11-16 发布于北京
  • 举报

2023年2月10日17:55

__

2.1

自动指针

唯一指针_/

‑

#include

iostream#include

string.h#include

memoryusing

namespace

std;

class

String{

public:

String(const

char

*str){

cout

String(const

char

*str)

endl;

if(str){

m_ptr

=new

char[strlen(str)

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档