文件名称:exp1
介绍说明--下载内容均来自于网络,请自行研究使用
理解和掌握C++抽象类和具体类的实现,了解运算符重载。
实验内容:
(1)从Point、Circle类中抽象出基类Shape,研究抽象类和具体类的接口和实现。
(2)从中派生出一个正方形类和圆柱体类,然后写一个测试程序,输出正方形的面积和圆柱体的体积。
(3)在Circle类中实现关系运算符重载(<、<=、==、!=、>、>=),实现按半径对Circle对象排序。-Understand and grasp the abstract and concrete classes C++ realization understand operator overloading. Experiment: (a) From the Point, Circle class abstract base class Shape, research abstract and concrete classes of interface and implementation. (2) derived from a square cylinder class and the class, and then write a test program, the output square area and volume of a cylinder. (3) In the Circle class operator overloading of relations (< , < =, ==,! =,> ,> =), To achieve by the radius of the right sort Circle object.
实验内容:
(1)从Point、Circle类中抽象出基类Shape,研究抽象类和具体类的接口和实现。
(2)从中派生出一个正方形类和圆柱体类,然后写一个测试程序,输出正方形的面积和圆柱体的体积。
(3)在Circle类中实现关系运算符重载(<、<=、==、!=、>、>=),实现按半径对Circle对象排序。-Understand and grasp the abstract and concrete classes C++ realization understand operator overloading. Experiment: (a) From the Point, Circle class abstract base class Shape, research abstract and concrete classes of interface and implementation. (2) derived from a square cylinder class and the class, and then write a test program, the output square area and volume of a cylinder. (3) In the Circle class operator overloading of relations (< , < =, ==,! =,> ,> =), To achieve by the radius of the right sort Circle object.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
exp1
....\1.dsp
....\1.dsw
....\1.ncb
....\1.opt
....\1.plg
....\12-6.cpp
....\Circle.cpp
....\Circle.h
....\Cylinder.cpp
....\Cylinder.h
....\Debug
....\.....\1.exe
....\.....\1.ilk
....\.....\1.pch
....\.....\1.pdb
....\.....\12-6.obj
....\.....\Circle demo.obj
....\.....\Circle.obj
....\.....\Cylinder.obj
....\.....\Point.obj
....\.....\Rectangle.obj
....\.....\Square.obj
....\.....\vc60.idb
....\.....\vc60.pdb
....\Point.cpp
....\Point.h
....\Rectangle.cpp
....\Rectangle.h
....\Shape.h
....\Square.cpp
....\Square.h