我想问一下是否有一种方法可以使用define在C++中创建一个像这样的函数:
#define RequiredDamage(%1) ( (%1+1)*500 )
有人可以帮助我更好地了解#define实际工作方式。
#define
提前致谢!
c++
c++ ×1