本文介绍了如何使用#DEFINE替换#include中的字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 原始的#include字符串是这样的: #include" my_path1 \Includes\types.h" I想要改变这样的话 #DEFINE MY_PATH my_path1 #include" MY_PATH\include\types.h" 这是无法编译的。是否需要$()或其他符号?The original #include string like this: #include "my_path1\Includes\types.h" I want to change like this #DEFINE MY_PATH my_path1 #include "MY_PATH\include\types.h" This can not be compiled. Is there a $() or other symbol needed?推荐答案 展开 | 选择 | Wrap | 行号 展开 | 选择 | Wrap | 行号 这篇关于如何使用#DEFINE替换#include中的字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-27 17:22