随笔分类 - C++
摘要:![](https://img2020.cnblogs.com/blog/1892439/202102/1892439-20210209150026384-706341685.png)
阅读全文
摘要:![](https://img2020.cnblogs.com/blog/1892439/202102/1892439-20210206100631389-53586541.png) ![](https://img2020.cnblogs.com/blog/1892439/202102/1892439-20210206102320059-1780091665.png) ![](https://im
阅读全文
摘要:![](https://img2020.cnblogs.com/blog/1892439/202102/1892439-20210205161736820-1952676609.png)![](https://img2020.cnblogs.com/blog/1892439/202102/1892439-20210205161753070-276111849.png)![](https://img...
阅读全文
摘要:![](https://img2020.cnblogs.com/blog/1892439/202102/1892439-20210203212254542-8438208.png)![](https://img2020.cnblogs.com/blog/1892439/202102/1892439-20210204212019917-213274097.png)![](https://img202...
阅读全文
摘要:#类内对象 #静态: #include <iostream> #include <string> using namespace std; class Student { public: Student(const string& name1, int age1) { } public: stati
阅读全文
摘要:为什么拷贝构造函数必须为引用传递,不能是值传递 简单的回答bai是为了防止递归引用。du 具体一些zhi可以这么讲: 当 一个dao对象需要zhuan以值方式传递时,编译shu器会生成代码调用它的拷贝构造函数以生成一个复本。如果类A的拷贝构造函数是以值方式传递一个类A对象作为参数的话,当 需要调用类
阅读全文
摘要:![](https://img2020.cnblogs.com/blog/1892439/202102/1892439-20210202105309604-1184739965.png) ![](https://img2020.cnblogs.com/blog/1892439/202102/1892439-20210202113636899-1505806763.png) ![](https://
阅读全文
摘要:参考:https://zhuanlan.zhihu.com/p/62106872
阅读全文