MFC
代码说明:
(1)定义一个抽象基类Shape,同它派生出5个类:圆、正方形、矩形、梯形、三角形。 (2)利用虚函数计算几种图形面积。 (3)演示构造函数、复制构造函数、析构函数的作用和调用顺序 (4)用类模板具体实现。 (5)利用MFC类库在图形用户界面上绘制及修改这些图形,采用对话框输入输出图形的基本属性,或者利用运算符重载输入输出图形的基本属性。 (6)用文件保存图形信息,且能够从文件中读取并作相应处理。 2)创新要求: 采用头文件与源文件分离的方法,多态性的实现多样化(defines an abstract base class Shape, with which it derives five categories: round, square, rectangular, trapezoidal, triangular. (2) the use of virtual functions to calculate several graphics area. Effect (3) demonstrate the constructor, copy constructor and destructor call sequence (4) with a class template implementation. (5) The use of MFC library to draw and modify graphics, using the basic properties dialog input and output graphics, or the use of the basic properties of operator overloading the input and output graphics on the graphical user interface. (6) with the file save graphical information, and can be read a file and make the appropriate treatment. 2) Innovation requirements: Using the method header and source files separate polymorphism diversify )
文件列表:
MainFrm.cpp,8687,2015-01-04
MainFrm.h,1095,2015-01-04
MFC.APS,129556,2015-01-05
MFC.cpp,6077,2015-01-05
MFC.exe,286208,2015-01-05
MFC.h,2180,2015-01-05
MFC.rc,12129,2015-01-05
MFC.vcxproj,6503,2015-01-04
MFC.vcxproj.filters,2921,2015-01-04
MFCDoc.cpp,2442,2015-01-04
MFCDoc.h,829,2015-01-04
MFCView.cpp,5131,2015-01-05
MFCView.h,1324,2015-01-05
ReadMe.txt,4011,2015-01-04
res
...\MFC.rc2,662,2015-01-04
resource.h,2402,2015-01-05
stdafx.cpp,136,2015-01-04
stdafx.h,901,2015-01-04
targetver.h,234,2015-01-04
Text1.cpp,1071,2015-01-04
Text1.h,483,2015-01-04
下载说明:请别用迅雷下载,失败请重下,重下不扣分!