int Ai; Ai=nLength*nWidth; return Ai; }
double Area_double() { double Ad; Ad=dLength*dWidth; return Ad; }
virtual ~Rect() { cout<<\ } private:
int nLength; int nWidth; double dLength; double dWidth; };
void main() { Rect R1(1,2); cout< 百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库C++AND UML习题及答案(给学生)(9)在线全文阅读。
相关推荐: