标签:常量 赋值 main clu csharp ios str public 改变
#include <iostream>
using namespace std;
class A
{
public:
int i;
int j;
}
int main()
{
const A* a = new A();
A* a1;
a1 = a;
}
这个是有道理的,能够这么做的话,const中内容就会被改变。
标签:常量 赋值 main clu csharp ios str public 改变
原文地址:http://www.cnblogs.com/hong2016/p/6783333.html