随笔分类 -  C++

摘要:![](https://img2020.cnblogs.com/blog/1892439/202102/1892439-20210209150026384-706341685.png) 阅读全文
posted @ 2021-02-09 15:01 Chenyi_li 阅读(35) 评论(0) 推荐(0) 编辑
摘要:![](https://img2020.cnblogs.com/blog/1892439/202102/1892439-20210206100631389-53586541.png) ![](https://img2020.cnblogs.com/blog/1892439/202102/1892439-20210206102320059-1780091665.png) ![](https://im 阅读全文
posted @ 2021-02-06 11:03 Chenyi_li 阅读(47) 评论(0) 推荐(0) 编辑
摘要:![](https://img2020.cnblogs.com/blog/1892439/202102/1892439-20210205161736820-1952676609.png)![](https://img2020.cnblogs.com/blog/1892439/202102/1892439-20210205161753070-276111849.png)![](https://img... 阅读全文
posted @ 2021-02-05 17:27 Chenyi_li 阅读(48) 评论(0) 推荐(0) 编辑
摘要:![](https://img2020.cnblogs.com/blog/1892439/202102/1892439-20210203212254542-8438208.png)![](https://img2020.cnblogs.com/blog/1892439/202102/1892439-20210204212019917-213274097.png)![](https://img202... 阅读全文
posted @ 2021-02-05 08:11 Chenyi_li 阅读(48) 评论(0) 推荐(0) 编辑
摘要:#40 #20 阅读全文
posted @ 2021-02-03 21:37 Chenyi_li 阅读(46) 评论(0) 推荐(0) 编辑
摘要:#类内对象 #静态: #include <iostream> #include <string> using namespace std; class Student { public: Student(const string& name1, int age1) { } public: stati 阅读全文
posted @ 2021-02-03 20:45 Chenyi_li 阅读(46) 评论(0) 推荐(0) 编辑
摘要:为什么拷贝构造函数必须为引用传递,不能是值传递 简单的回答bai是为了防止递归引用。du 具体一些zhi可以这么讲: 当 一个dao对象需要zhuan以值方式传递时,编译shu器会生成代码调用它的拷贝构造函数以生成一个复本。如果类A的拷贝构造函数是以值方式传递一个类A对象作为参数的话,当 需要调用类 阅读全文
posted @ 2021-02-03 14:31 Chenyi_li 阅读(75) 评论(0) 推荐(0) 编辑
摘要:![](https://img2020.cnblogs.com/blog/1892439/202102/1892439-20210202105309604-1184739965.png) ![](https://img2020.cnblogs.com/blog/1892439/202102/1892439-20210202113636899-1505806763.png) ![](https:// 阅读全文
posted @ 2021-02-02 11:59 Chenyi_li 阅读(44) 评论(0) 推荐(0) 编辑
摘要:参考:https://zhuanlan.zhihu.com/p/62106872 阅读全文
posted @ 2021-01-28 19:06 Chenyi_li 阅读(108) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示