69,379
社区成员
发帖
与我相关
我的任务
分享
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
_beginthread (thread, 0, NULL) ;
for(int i = 0; i < 10; i++)
{
Sleep(100L);
}
return 0;
}
VOID thread(PVOID pvoid)
{
for(int i = 0; i < 20; i++)
{
Sleep(100L);
printf("number: %d\n", i);
}
}