Ai
1 Star 0 Fork 0

zing/learn-cpp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.cpp 317 Bytes
一键复制 编辑 原始数据 按行查看 历史
zing 提交于 2020-07-01 22:47 +08:00 . add tuple
//
// Created by zing on 2017/9/11.
//
#include <thread>
#include <iostream>
using namespace std;
void threadProc() {
cout << "Thread ID: ";
cout << this_thread::get_id() << endl;
}
auto main() -> int {
cout << "hello world" << endl;
thread thread1(threadProc);
thread1.join();
return 0;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/zing-dev/learn-cpp.git
git@gitee.com:zing-dev/learn-cpp.git
zing-dev
learn-cpp
learn-cpp
master

搜索帮助