#include <thread>
#include <iostream>
void foo() { std::cout << "foo\n"; }
int main()
{
std::thread t(foo);
t.join();
}
请问为什么编译出错啊?
#include <thread>
#include <iostream>
void foo() { std::cout << "foo\n"; }
int main()
{
std::thread t(foo);
t.join();
}
请问为什么编译出错啊?
3 回答1.3k 阅读✓ 已解决
1 回答1k 阅读✓ 已解决
4 回答817 阅读
1 回答889 阅读
1 回答919 阅读
1 回答690 阅读
1 回答795 阅读
我这里可以运行,我用的是Mingw-w64