【c++11线程库的使用】#include<iostream> #include<thread> #include<string> using namespace std; void hello(string msg) { for (int i = 0; i < 1000; i++) { cout << i; cout << endl; } } int main() { //1.创建线程 thread thread1(hello,"hello Thread");//打印的就是hello Thread //主程序等待 看我这个程序运