1.只要这(某值保持不变)是事实,就应该确实说出来,这样可以获得编译器的协助,确保这条约束不被违反. 2.keyword const 有很多种用法,但都简单易用. 2.1classes 外部修饰global/namespace作用域中的常量. 2.2修饰文件.函数.区块作用域中被声明的static 对象. 2.3修饰classes内部的static和non-static 成员变量. 2.4对于指针,可以指出ptr自身.ptr所指物或者两者都(或都不)是const. 这里不清楚static跟 co