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下經過。spa

相關文章
相關標籤/搜索