摘要: 参考:https://www.cnblogs.com/yaomaomao/p/11969674.html #Part 1 思考人生的多线程 我们一直在说高并发、多线程、分布式应用,但是高并发情况下,多线程一定就快吗? 我们首先要理解下并发运行是怎么一回事。 为什么一般意义上来说多线程就能抵抗高并发, 阅读全文
posted @ 2021-02-23 15:50 Chenyi_li 阅读(435) 评论(0) 推荐(0)
摘要: ![](https://img2020.cnblogs.com/blog/1892439/202102/1892439-20210221104935425-1859643648.png) 阅读全文
posted @ 2021-02-21 10:50 Chenyi_li 阅读(226) 评论(0) 推荐(0)
摘要: 参考:https://www.cnblogs.com/AlgrithmsRookie/p/5919164.html https://www.cnblogs.com/fivestudy/p/10217887.html #一、简单递归的实现 #include "stdafx.h" #include <s 阅读全文
posted @ 2021-02-19 20:27 Chenyi_li 阅读(225) 评论(0) 推荐(0)
摘要: ![](https://img2020.cnblogs.com/blog/1892439/202102/1892439-20210209150026384-706341685.png) 阅读全文
posted @ 2021-02-09 15:01 Chenyi_li 阅读(44) 评论(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 阅读(55) 评论(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 阅读(53) 评论(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 阅读(53) 评论(0) 推荐(0)
摘要: #40 #20 阅读全文
posted @ 2021-02-03 21:37 Chenyi_li 阅读(55) 评论(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 阅读(56) 评论(0) 推荐(0)
摘要: 为什么拷贝构造函数必须为引用传递,不能是值传递 简单的回答bai是为了防止递归引用。du 具体一些zhi可以这么讲: 当 一个dao对象需要zhuan以值方式传递时,编译shu器会生成代码调用它的拷贝构造函数以生成一个复本。如果类A的拷贝构造函数是以值方式传递一个类A对象作为参数的话,当 需要调用类 阅读全文
posted @ 2021-02-03 14:31 Chenyi_li 阅读(81) 评论(0) 推荐(0)