Const 修饰符的用法
#include <iostream>
using namespace std;
int main(int argc, char **argv) {
int test=6;
int const *a;
a=&test;//ok,但是*a 不能改变
const int *b;
b=a;//ok,但是*b 不能改变
int* const p = &test; //可改变*p但不能改变p,因为p是const
*p=*a;
cout<<*p<<endl;
return 0;
}