摘要: 1.创建一个线程 创建线程比较简单,使用std的thread实例化一个线程对象就创建完成了,示例: #include <iostream>#include <thread>using namespace std; void t1() //普通的函数,用来执行线程{ for (int i = 0; i 阅读全文
posted @ 2022-04-02 10:51 江南王小帅 阅读(754) 评论(0) 推荐(0)