#include
#include
#include
#include
using namespace std;
void ms()
{
MessageBoxA(0, "wanghuankong", "1", 1);
}
void main()
{
/*thread ths[4]{thread(ms), thread(ms), thread(ms), thread(ms)};*/
thread t11(ms);
thread t12(ms);
thread t13(ms);
thread t14(ms);
//Sleep(3000);
system("pause");
}
多线程案例
最新推荐文章于 2023-02-08 22:34:08 发布