int const *p;//指的是指针p指的int对象是常量;
const int *p;//指的是指针p指的int对象是常量;
int * const *p ;//指的是指针p是常量;
const int fun();指的是fun函数返回的是一个常量;
int fun (const SimpleClass s){//里面只能用SimpleClass的常量函数
//不能使用s.get(),如果没有声明成 tpye get()const ;
}
常量函数如下: int fun () const;