#ifdef #endif
来源:互联网 发布:linux 复制重命名文件 编辑:程序博客网 时间:2024/06/05 10:12
#define hahaa
#ifdef hahaa
cout<<"test"<<endl;#endif
如果宏定义了hahaa则执行语句。
条件编译,防止重复定义(多次包含头文件)。
0 0
- #ifdef...#endif
- #ifdef #endif
- #ifdef #endif
- #ifdef #endif
- #ifdef #endif
- #ifdef #endif
- #ifdef #endif 条件编译
- ifdef,#else,#endif
- #ifdef与#endif用途
- #define #ifdef #endif
- #ifdef extern c endif
- #ifdef/ #endif 详解 【转】
- #define #ifdef #endif
- #define #ifdef #endif
- #ifdef,#else,#if,#endif
- #ifdef #else #endif
- #ifdef #endif 简要说明
- C++中#ifdef#endif
- 解决 - java.lang.OutOfMemoryError: unable to create new native thread
- memcached与spring整合、测试
- ios学习笔记:UIAlertView使用和监听点击事件
- location,window,html的使用
- OSGI的含义
- #ifdef #endif
- oozie 入门
- Java学习笔记七(文件夹操作)
- Gson解析Json数据
- 25条提高iOS App性能的建议和技巧
- Repro学习 之 TLS传输协议配置
- Tomcat——2 字节的 UTF-8 序列的字节 2 无效
- linux find
- Nginx+Memcached+Tomcat集群配置