摘要: 定义一个宏,参考下面例子及运行输出结果。 这里宏展开为简单替换,展开为3+1*3+4; 所以一般带参数的宏定义的时候需要使用()保证运行正确。 #include <stdio.h>#define S(a,b) a*bint main(){ int area; area = S(3+1,3+4); p 阅读全文
posted @ 2023-02-19 16:56 车离子 阅读(117) 评论(0) 推荐(0)