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

#include<iostream>
#include<thread>


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


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

  

posted @ 2019-12-20 20:41  楓羽  阅读(454)  评论(0编辑  收藏  举报