#include <iostream>
//C宏
#define k_squgec(X) (X)*(X)
#define k_squgec2(X) X*X
//C++ 内联函数
inline double SQUGEC(double X) {return X*X;}
int main(int argc, const char * argv[]) {
int a, b ,c = 12;
//非正常宏传值
a = k_squgec2(10+20); //230 理解为10*20+10+20,好怪的运算,用括号(X)*(X)可以
// a = k_squgec2(c++); //语法警告
//等值
a = k_squgec(10+20);
b = SQUGEC(10+20);
a = k_squgec2(c); //12*12
a = k_squgec(c); //12*12
b = SQUGEC(10+2);
return 0;
}