立即学习:https://edu.csdn.net/course/play/9186/191694?utm_source=blogtoedu
// project9.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//
#include <iostream>
using namespace std;
int main()
{
const int ai = 90;
const int* pai = &ai;
int* pai2 = const_cast<int*>(pai);
*pai2 = 120; //这种写值行为 属于一种为定义行为 大家最好不要这么做
cout << ai << endl;
cout << *pai << endl;
return 0;
}