cout只有在控制台程序中才可以看到输出,mfc中要在调试窗口中看到变量输出,需要使用OutputDebugString(LPCTSTR)。 转载于:https://www.cnblogs.com/swek/p/4408773.html