![]() |
#2
sunnysab2012-05-28 12:44
|
或者帮我解答一下:

#include<windows.h>
#include<stdio.h>
DWORD _stdcall ThreadProc(LPVOID lpParameter)//线程执行函数
{
printf("nihao");
return 0;
}
int main()
{
CreateThread(NULL,0,ThreadProc,NULL,0,NULL);//创建一个线程,去执行ThreadProc函数
printf("你好");
return 0;
}
为什么只输出“你好”?
环境:VC6/Cli (VC6 控制台程序)
系统:XP SP3
[ 本帖最后由 sunnysab 于 2012-5-28 12:45 编辑 ]