2023年11月23日

C++ #ifndef #endif 条件编译

摘要: #ifndef : if not defined 是预处理功能(宏定义、文件包含、条件编译)当中的条件编译; 1. 防止头文件的重复包含和编译 2. 便于程序的调试和移植 #endif: 示例: test1_h test2_h 当test2_h文件中引入了 test1_h头文件 在Main.cpp文 阅读全文

posted @ 2023-11-23 16:06 廿陆 阅读(36) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示