创建控制台窗口 #include<windows.h> #include<iostream> int WINAPI WinMain(HINSTANCE , HINSTANCE, LPSTR, int nCmdShow) { AllocConsole(); //create console