forthespada / InterviewGuide

🔥🔥「InterviewGuide」是阿秀从校园->职场多年计算机自学过程的记录以及学弟学妹们计算机校招&秋招经验总结文章的汇总,包括但不限于C/C++ 、Golang、JavaScript、Vue、操作系统、数据结构、计算机网络、MySQL、Redis等学习总结,坚持学习,持续成长!
https://interviewguide.cn/
Apache License 2.0
5.3k stars 1.42k forks source link

C++基础语法——条目28:拷贝初始化和直接初始化 #154

Open RightOff opened 4 months ago

RightOff commented 4 months ago

当拷贝构造函数为private时:语句2string str2(str1); 在编译时应该也会报错吧