cylinder.h
来自「谭浩强 《C++ 程序设计》第三版的部分课后练习题源码」· C头文件 代码 · 共 12 行
H
12 行
class Cylinder:public Circle
{
private:
float height;
public:
Cylinder(float a=0,float b=0,float c=0,float d=0):Circle(a,b,c),height(d){}
float area()const ;
float volume()const ;
void showname()const;
void display() const;
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?