定义Point,Circle,Cylinder类.用友元求(friend)圆面积,圆柱体体积.
题目
定义Point,Circle,Cylinder类.用友元求(friend)圆面积,圆柱体体积.
答案
#include using namespace std;const double PI = 3.141592653;class Point{public:x05double X;x05double Y;public:x05Point() :X(0),Y(0){};x05Point(double x,double y) :X(x),Y(y){};};class Circle :public...
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
最新试题
热门考点