fig4.5.cpp
来自「Data Abstraction & Problem Solving with 」· C++ 代码 · 共 33 行
CPP
33 行
#include <iostream.h>int main(){ int *p, *q; p = new int; *p = 1; q = new int; *q = 2; cout << *p << " " << *q << endl; *p = *q + 3; cout << *p << " " << *q << endl; p = q; cout << *p << " " << *q << endl; *p = 7; cout << *p << " " << *q << endl; p = new int; delete p; p = NULL; q = NULL; return 0;} // end main
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?