c++中的常值变量void set(int n)const {a=n}; 为什么a是不能修改的左值
是不是因为你用const修饰了a,因为const代表的是将a 的值写死,任何人不得更改a的值
类成员的const 函数,表示只能有const对象调用,因为是const对象所以不能修改const对象的成员