摘要: #include <iostream> #include<thread> using namespace std; void ThreadFun(const int &arr1,char *pBuf) { cout << arr1 << endl; cout << pBuf << endl; ret 阅读全文
posted @ 2020-08-19 22:47 zwj鹿港小镇 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 1.用一个初始函数创建一个线程 #include <iostream> #include<thread> using namespace std; void PinrtFun() { cout << " 子线程运行" << endl; } int main() { std::thread t1(Pi 阅读全文
posted @ 2020-08-19 00:04 zwj鹿港小镇 阅读(340) 评论(0) 推荐(0) 编辑