C++11多线程(3)

创建、等待多个线程 创建多个线程时,最好使用vector与join()函数结合使用 #include <iostream> #include <thread> #include <vector> using namespace std; void print() { cout << "hello world" << endl; } int main() { vector<thread>
相关文章
相关标签/搜索