上海喝下午茶地方排名:const int a和int const a一样吗?

来源:百度文库 编辑:高校问答 时间:2024/05/08 07:18:26
在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.