摘要: 1.const关键字与宏定义的区别. 宏定义的“边缘效应”:产生原因是它在预处理阶段只进行简单的字符替换,不会进行编译检查。 错误1: #define N 3+2 float a=2*N; //a=2*3+2 错误2: #define multiply(x,5) x*5 x=2+3; int a=m 阅读全文
posted @ 2021-05-09 18:04 帅子aaa 阅读(257) 评论(2) 推荐(0)