usecoloredsphere.cpp

来自「Data Abstraction & Problem Solving with 」· C++ 代码 · 共 11 行

CPP
11
字号
#include <iostream.h>#include "ColoredSphere.h"void useColoredSphere(){   ColoredSphere ball(RED);   ball.setRadius(5.0);   cout << "The ball diameter is " << ball.getDiameter();   ball.setColor(BLUE);} // use ColoredSphere 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?