C++ || const_cast 将const变量转为非const
摘要:
点击查看代码 #include <iostream> using namespace std; int main() { int a =5; const int* p=&a;//需要用&a,对应左边的 指针变量 cout<<"a的值:"<<a<<endl; cout<<"a的地址:"<<&a<<en 阅读全文
posted @ 2022-04-16 17:22 有序 阅读(234) 评论(0) 推荐(0)