Loser-HomeWork
Loser-HomeWork copied to clipboard
卢瑟们的作业展示,答案讲解,以及一些C++知识
From #205 > 感觉现在的内容有点杂了,作业和解析感觉可以单独搞一个文件,找个有审美的卢瑟重新制作一下。
[https://github.com/Mq-b/Loser-HomeWork/blob/main/C++CoreGuidelines解析/第4章-函数.md#f53-在非局部使用包括要被返回存储在堆上或要传给其他线程的-lambda-表达式中避免通过引用来捕获](https://github.com/Mq-b/Loser-HomeWork/blob/main/src/C%2B%2BCoreGuidelines/%E7%AC%AC4%E7%AB%A0-%E5%87%BD%E6%95%B0.md) > std::cout 的生存期与进程的生存期绑定。这意味着,在屏幕上打印出“C++11”之前,std::cout 对象可能已经消失了。 英文原书都一个意思 > std::cout’s lifetime is bound to the lifetime of the process. This means that the thread thr may be gone before std::cout prints C++11...