摘要:
shape.h/*Circle*/namespaceG_Shape{classCircle{public:doublecalculate_perimeter(doubleradius);doublecalculate_area(doubleradius);private:doubleradius;};/*Rectangle*/classRectangle{public:doublecalculate_perimeter(doublewidth,doubleheight);doublecalculate_area(doublewidth,doubleheight);private:double. 阅读全文
摘要:
头文件(shape.h):classCircle{public:doublecalculate_perimeter(doubleradius);doublecalculate_area(doubleradius);private:intradius;};shape.cpp:#include"shap... 阅读全文