constcast1.cpp.svn-base
来自「QT方面的开发」· SVN-BASE 代码 · 共 13 行
SVN-BASE
13 行
#include <iostream>using namespace std;int main() { const int N = 22; int * pN = const_cast<int*>(&N); *pN = 33; cout << N << '\t' << &N << endl; cout << *pN << '\t' << pN << endl;}/*OUT22 0xbf91cfa033 0xbf91cfa0 */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?