发现不能运行,修改stdafx.h添加的数据如下(将WinMainCRTStartup前面的小w去掉):
#ifdef _DEBUG
#pragma comment( linker, "/subsystem:console /entry:WinMainCRTStartup" )//我用VS2008
#endif
可以运行,调试cout与printf都没有问题,我用的VS2013
#ifdef _DEBUG
#pragma comment( linker, "/subsystem:console /entry:WinMainCRTStartup" )//我用VS2008
#endif
可以运行,调试cout与printf都没有问题,我用的VS2013