您好,欢迎光临本网站![请登录][注册会员]  

搜索资源列表

  1. 模拟实现string类深浅拷贝

  2. 从构造,析构以及拷贝构造的方面理解string类的底层实现。 源代码获取: https://github.com/akh5/C-/blob/master/STL/Mystring.cpp string的底层通过字符指针char*通过构造函数申请对应大小的空间,并将指针指向其空间。 #include #include #include namespace my { class string { public: string(char* str = ) { if (nullpt
  3. 所属分类:其它

    • 发布日期:2021-01-08
    • 文件大小:74kb
    • 提供者:weixin_38642369