#include<iostream>
using namespace std;
#include<ctime>
int main() {
//指向常量的指针
const int a = 10;
const int b = 25;
const int* pc = &a;
pc = &b;
cout << *pc << endl;
//指针是常量
int i = 29;
int* const pc1 = &i;
*pc1 = 100;
cout << *pc1 << endl;
//常量指针指向了常量
const int a1 = 67;
const int* const pc2 = &a1;
cout << *pc2 << endl;
system("pause");
return 0;
}