#include <set.h> using namespace std; #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif编译报什么错?
#include <set.h> using namespace std; #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif编译报fatal error C1083: Cannot open include file: 'set.h': No such file or directory
VC6下混用MFC和STL好像不太容易你检查下路径设置呢
using namespace std;放在在系统生成的代码#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif之前试试看
using namespace std;放在在系统生成的代码#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif之前还是不行啊!
这个跟什么类型的程序没有关系,而是使用的不同的头文件。#include<set>是标准的C++库的使用方式,你既然用STL,当然应该用这种方法。同时,怀疑有没有"set.h"这个文件存在
___________________有没有 using namespace std; ?
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE中确实没有set.h这个文件,只有个set文件。但在MFC程序中用#include<set>却不行!怎么弄?
using namespace std;
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif编译报什么错?
using namespace std;
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif编译报fatal error C1083: Cannot open include file: 'set.h': No such file or directory