65,211
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
using namespace std;
int main()
{
const int i=0;
int *j = const_cast<int *> (&i);
*j = 1;
cout << &i << "\t"<< j << endl;
cout << i << " \t "<< *j << endl;
}
const int i=0;