如何避免头文件重复插入 请教各位大虾,如何在头文件中避免重复插入头文件?就是a.h 中有#include "b.h"b.h 中有#include "c.h"c.h 中有#include "a.h"这样c.h中就重复插入头文件了。 咋办涅? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 加上预编译头,如下: #ifnodefine A_H #define A_H......#endif #ifndef A_H#define A_H...#endif 是在c.h中:#ifndef A_H#define A_H#include "a.h"#endif是这样嘛? 在c.h中,#ifndef C_H #define C_H #include "a.h" #endif在a.h中,#ifndef A_H #define A_H ...#endif vc中怎样向DOS窗口输入回车键 ACE与MFC NT操作系统的问题! 问个vc IDE的怪问题 我的vc怎么突然每次build都把全部的文件rebuild, [紧急求助]想在标准的文件对话框里添加自己的控件 extern "c"的困惑! 如何做选择文件夹的文件对话框??? 50分新人小问题求助! 问大家一个关于线程与窗口的问题 直接定义变量与使用new,delete有什么区别,在内存一级(stack and heap)? OLEDB 读SQL SERVER数据表的问题! --------------变量调用问题--------------
#define A_H......#endif
#ifndef A_H
#define A_H
...
#endif
#define A_H#include "a.h"#endif
是这样嘛?
#define C_H #include "a.h" #endif
在a.h中,#ifndef A_H
#define A_H
...
#endif