c++多线程最简单的模版
#include <iostream>
#include <windows.h>
using namespace std;
DWORD WINAPI Fun(LPVOID lpParamter)
{
while(1)
{ cout<<"1"<<endl; }
}
int main()
{
HANDLE hThread = CreateThread(NULL, 0, Fun, NULL, 0, NULL);
CloseHandle( hThread );
while(1)
{ cout<<"2"<<endl; }
return 0;
}