结论:
const int*i(int const* i) :指向一个常量的指针,使用时不需要初始化,被指向的常量不可改变,但是指针指向的地点可以改变。
const int&i:是指向常量的引用,使用时必须初始化,而且初始化后,引用值不可改变,引用的常量也不能改变。
int* const i:指向的内容可以改变,但是指向的地址不能改变。
const int* i
const int x=10;
const int *p1=&x;
p1++;//ok
(*p1)++;//error
const int &i
const int &p2;//error
const int &p2=x;//ok
const int y=20;
p2=y;//error
p2++;//error