第一章课后题3_2(P58)

#include <iostream>
using namespace std;

int main()
{
const int x = 5, y = 6;
const int *p = &x;
p = const_cast<int *>(&y);
cout << *p << endl;
system("pause");
return 1;
}

posted @ 2020-02-26 17:56  CollisionDimension  阅读(88)  评论(0)    收藏  举报