这是我的build.bat
@echo off
setlocal
call "%VS120COMNTOOLS%"\\vsvars32.bat
echo Deleting old exe...
del build_win32\dist\bin\Whitedrop_d.exe
cd build_win32
echo Building As Debug
msbuild /detailedsummary /p:Configuration=Debug /p:Platform=x86 /t:build ALL_BUILD.vcxproj
echo Done building, Exiting.
cd dist\bin\
Whitedrop_d.exe
cd ../../../
endlocal
但是当我运行一切都很完美时,它会构建并运行,但运行我的exe时没有记录任何内容。如果我尝试在main中添加cout << 'hi world' << endl
,它会编译并运行,但我不会在cmd提示符中看到Hi world(但GUI显示)。有没有办法在同一窗口中显示cmd输出?