大神请进!!!!!!!!!!!!!!!!!!!
void out(const std::string& s){
static int index = 1;
cout <<s.c_str()<< index << endl;
if (index<200)
try
{
while (true)
{
if (index == 200)
break;
std::thread t(out, s);
t.detach();
index++;
Sleep(20);
}
}
catch (std::system_error &e)
{
cout << "=================>"<<e.what() << endl;
}
}