c03p142.txt
来自「Data Abstraction & Problem Solving with 」· 文本 代码 · 共 15 行
TXT
15 行
#include <iostream.h>#include "Sphere.h"int main(){ Sphere unitSphere; // radius is 1.0 Sphere mySphere(5.1); // radius is 5.1 unitSphere.displayStatistics(); mySphere.setRadius(4.2); // resets radius to 4.2 cout << mySphere.getDiameter() << endl; return 0;} // end main
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?