spheredemo.cpp
来自「Data Abstraction & Problem Solving with 」· C++ 代码 · 共 14 行
CPP
14 行
// page 142#include <iostream.h>#include "Sphere.h"int main(){ Sphere unitSphere; // radius is 1.0 Sphere mySphere(5.1); // radius is 5.0 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 + -
显示快捷键?