文件名称:exp1
-
所属分类:
- 标签属性:
- 上传时间:2013-09-25
-
文件大小:1.36mb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
理解和掌握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/
exp1/1.dsp
exp1/1.dsw
exp1/1.ncb
exp1/1.opt
exp1/1.plg
exp1/12-6.cpp
exp1/Circle.cpp
exp1/Circle.h
exp1/Cylinder.cpp
exp1/Cylinder.h
exp1/Debug/
exp1/Debug/1.exe
exp1/Debug/1.ilk
exp1/Debug/1.pch
exp1/Debug/1.pdb
exp1/Debug/12-6.obj
exp1/Debug/Circle demo.obj
exp1/Debug/Circle.obj
exp1/Debug/Cylinder.obj
exp1/Debug/Point.obj
exp1/Debug/Rectangle.obj
exp1/Debug/Square.obj
exp1/Debug/vc60.idb
exp1/Debug/vc60.pdb
exp1/Point.cpp
exp1/Point.h
exp1/Rectangle.cpp
exp1/Rectangle.h
exp1/Shape.h
exp1/Square.cpp
exp1/Square.h
exp1/1.dsp
exp1/1.dsw
exp1/1.ncb
exp1/1.opt
exp1/1.plg
exp1/12-6.cpp
exp1/Circle.cpp
exp1/Circle.h
exp1/Cylinder.cpp
exp1/Cylinder.h
exp1/Debug/
exp1/Debug/1.exe
exp1/Debug/1.ilk
exp1/Debug/1.pch
exp1/Debug/1.pdb
exp1/Debug/12-6.obj
exp1/Debug/Circle demo.obj
exp1/Debug/Circle.obj
exp1/Debug/Cylinder.obj
exp1/Debug/Point.obj
exp1/Debug/Rectangle.obj
exp1/Debug/Square.obj
exp1/Debug/vc60.idb
exp1/Debug/vc60.pdb
exp1/Point.cpp
exp1/Point.h
exp1/Rectangle.cpp
exp1/Rectangle.h
exp1/Shape.h
exp1/Square.cpp
exp1/Square.h
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.