第1章 你好,C++并发世界

#include<iostream>
#include<thread>


void print(){
    std::cout << "hello world" << std::endl;
}


int main(){
    std::thread t(print);
    t.join();
    return 0;
}

  

原文地址:https://www.cnblogs.com/hebust-fengyu/p/12074972.html