逆战天梯:const int a和int const a一样吗?

来源:百度文库 编辑:中科新闻网 时间:2024/05/11 15:43:56
在VC++环境编译

const
const declaration

member-function const

When modifying a data declaration, the const keyword specifies that the object or variable is not modifiable. When following a member function's parameter list, the const keyword specifies that the function doesn't modify the object for which it is invoked.