摘要: c++结构体 1. 构造函数和运算符 这样没有默认值 struct node{ int id; node*left; node(int a):id(a),left(nullptr){} }; 这样要注意如下的问题 node * root=new node(0); node * y; node* x= 阅读全文
posted @ 2019-12-29 18:54 Erio 阅读(7906) 评论(0) 推荐(2) 编辑
摘要: 之前写过一些linux 下的多线程,比如 https://www.cnblogs.com/lqerio/p/11117657.html 但是没有用到<thread> 这篇笔记记录的是使用<thread>的方法 (c++11新引进的技术) 参考: C++11多线程编程 https://blog.csd 阅读全文
posted @ 2019-12-29 00:31 Erio 阅读(198) 评论(0) 推荐(0) 编辑