io20_1.06.c
来自「C++ Primer(第三版)的随书源代码」· C语言 代码 · 共 20 行
C
20 行
// #include <iostream>
#include <iostream.h>
/**
** note: the actual address value will vary
** The address of pstr is: 0x10012110
**
**/
const char *str = "vermeer";
int main()
{
// ok: force treatment of pstr as an address
const char *pstr = str;
cout << "The address of pstr is: "
<< static_cast<void*>(const_cast<char*>(pstr)) << endl;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?