#include "stdafx.h"
#include <iostream>
#include <windows.h>
DWORD WINAPI method(LPVOID lpParamter){
while(true)
printf("执行method方法\n");
}
void main(){
HANDLE hThread = CreateThread(NULL, 0, method, NULL, 0, NULL);
CloseHandle(hThread);
while(true)
printf("执行main方法\n");
}
#include <iostream>
#include <windows.h>
DWORD WINAPI method(LPVOID lpParamter){
while(true)
printf("执行method方法\n");
}
void main(){
HANDLE hThread = CreateThread(NULL, 0, method, NULL, 0, NULL);
CloseHandle(hThread);
while(true)
printf("执行main方法\n");
}