#include <iostream>
#include <thread>
using namespace std;
using namespace std::this_thread;
void main()
{
auto n = thread::hardware_concurrency();//检测有多少cpu(核)
cout << n << endl;
system("pause");
}
#include <thread>
using namespace std;
using namespace std::this_thread;
void main()
{
auto n = thread::hardware_concurrency();//检测有多少cpu(核)
cout << n << endl;
system("pause");
}