> 其他 >
用C#计算出球、圆柱和圆锥的表面积和体积的源代码:
请帮我做哈
人气:370 ℃ 时间:2020-03-28 18:52:27
解答
#include #include using namespace std;class Ccircle{protected:float r;public:};class Csphere:public Ccircle{private:public:Csphere(float R){r=R;}float getArea(){return 4*3.1416*r*r;}fl...
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版