问题如题,
#include "stdafx.h"
#include <string>
#include <thread>
#include <iostream>
using namespace std;
void fun(int a )
{
std::cout<<a<<std::endl;
}
int _tmain(int argc, _TCHAR* argv[])
{
thread t1(fun,8);
t1.join();
system("pause");
return 0;
}