#include <iostream>
using namespace std;

class A
{
public:
	int i;
	int j;


}

int main()
{
	
const A* a = new A();
A* a1;
a1 = a;


}

  这个是有道理的,能够这么做的话,const中内容就会被改变。

相关文章:

  • 2022-12-23
  • 2021-04-06
  • 2022-12-23
  • 2022-12-23
  • 2021-09-11
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-31
  • 2021-05-22
  • 2022-01-22
  • 2021-10-03
  • 2021-06-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案