const2222222222222222222222
从老师书上复制粘贴过来的
#include
using namespace std;
#define N 200
int main()
{
const int a = 200;
int b = 300;
int c = a +b; //int c = N + b;
return 0;
}
define是预处理阶段 处理N的
而const 是汇编处理阶段进行处理的
如果一个变量用Const修饰 ...
原创
2020-04-19 22:11:52 ·
156 阅读 ·
0 评论