文件名称:EXTENDS
介绍说明--下载内容均来自于网络,请自行研究使用
C++入门实例,对继承与组合的初步应用。可以让用户选择在指定位置打印出不同的图形,如正立等腰三角形,倒立等腰三角形,矩形,正方形、菱形和多边形。图形由随机选择的*或者#组成。 请为每种图形设计一个类,这些类之间的关系可能是继承或者组合。
每个类需要能保存该图形对象的参数,改变参数的方法以及在屏幕上用字符打印该图形的方法。
程序根据用户的选择产生一个新图形的对象,为该对象设置参数并打印。
-C++ Getting Started example, inheritance and composition of the initial application. Allows users to choose to print a different location in the specified graphics, such as the isosceles triangle is established, inverted isosceles triangle, rectangle, square, diamond and polygon. Graphics by the random selection of* or# form. Please design a class for each graph, the relationship between these classes may be inherited or a combination. Each class needs to save the graphic object parameter, change the parameters of the method and the use of characters on the screen to print the graphic method. selection process based on user create a new graphic object, set the parameters for the object and print.
每个类需要能保存该图形对象的参数,改变参数的方法以及在屏幕上用字符打印该图形的方法。
程序根据用户的选择产生一个新图形的对象,为该对象设置参数并打印。
-C++ Getting Started example, inheritance and composition of the initial application. Allows users to choose to print a different location in the specified graphics, such as the isosceles triangle is established, inverted isosceles triangle, rectangle, square, diamond and polygon. Graphics by the random selection of* or# form. Please design a class for each graph, the relationship between these classes may be inherited or a combination. Each class needs to save the graphic object parameter, change the parameters of the method and the use of characters on the screen to print the graphic method. selection process based on user create a new graphic object, set the parameters for the object and print.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
5070309538_4\5070309538_4.cpp
............\5070309538_4.dsp
............\5070309538_4.dsw
............\5070309538_4.ncb
............\5070309538_4.opt
............\5070309538_4.plg
5070309538_4
............\5070309538_4.dsp
............\5070309538_4.dsw
............\5070309538_4.ncb
............\5070309538_4.opt
............\5070309538_4.plg
5070309538_4