现在的位置: 首页 > 综合 > 正文

xdebug(32) : warning C4229: 使用了记时错误 : 忽略数据上的修饰符

2012年12月29日 ⁄ 综合 ⁄ 共 305字 ⁄ 字号 评论关闭

代码:

#include "stdafx.h"
#include "Test_Banana.h"
#include "Test_BananaDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif
#include <fstream>

应该这样写

#include "stdafx.h"
#include "Test_Banana.h"
#include "Test_BananaDlg.h"
#include <fstream>

#ifdef _DEBUG
#define new DEBUG_NEW
#endif
//#include <fstream>

就是说头文件尽量放在文件的最前面,至于原因是不太清楚,有兴趣有可研究一下

抱歉!评论已关闭.