c++ const问题小记
- int* a = new int;
- const int* b = a;
- const int* a = new int;
- int* b = (int*)a;
- const int m = 10;
- int n = m;
- const int& p = m;
- int& q = (int&)p;
以上在vs2019下通过。
本文来自博客园,作者:SXQ-BLOG,转载请注明原文链接:https://www.cnblogs.com/sxq-blog/p/11579163.html
以上在vs2019下通过。
本文来自博客园,作者:SXQ-BLOG,转载请注明原文链接:https://www.cnblogs.com/sxq-blog/p/11579163.html