C++ 中 const 常量函数 static 变量 整理
const 只对其左边起作用,如果左边没数据 则对右边起作用如:const int * p; //修饰int 指向的数不能修改(即:不能 *p = 3形式),但指针可以修改int const * p 同const int *p ;int * const p 修饰* 是常量指针 指针不能修改(即:不能 int a ,p= &a )但其指向变量可以修改(可以*p = 3))常成员函数声明:<类型标志符>函数名(参数表)const;说明:(1...