Const

const int x=100;不能修改 仍然是变量

extern const int bufsize;声明

 const int & z=x;

不能通过z改变,z不能做坐直

int &a=x;

int &b=y;

a=b;

x=y;

 

posted @ 2019-04-18 21:01  -Asurada-  阅读(308)  评论(0编辑  收藏  举报