#define定义常量和宏 定义常量 #define M 100 #define STR “abc” int main(){ 可以直接打印M /STR } 定义宏 #define MAX(x,y) (x>y?x:y) 宏是有参数的 名字 参数 宏体