64,637
社区成员
发帖
与我相关
我的任务
分享
#include <windows.h>
#include <iostream.h>
DWORD WINAPI Fun1Proc(LPVOID lpParam);
void main(){
HANDLE hThread = CreateThread(NULL,0,Fun1Proc,NULL,0,NULL);
CloseHandle(hThread);
cout<<"Main thread running!"<<endl;
Sleep(10);
}
DWORD WINAPI Fun1Proc(LPVOID lpParam)
{
cout<<"Thread 1 running!"<<endl;
return 0;
}