文件名称:EXTENDS
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:5.25kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
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/5070309538_4.dsp
5070309538_4/5070309538_4.dsw
5070309538_4/5070309538_4.ncb
5070309538_4/5070309538_4.opt
5070309538_4/5070309538_4.plg
5070309538_4
5070309538_4/5070309538_4.dsp
5070309538_4/5070309538_4.dsw
5070309538_4/5070309538_4.ncb
5070309538_4/5070309538_4.opt
5070309538_4/5070309538_4.plg
5070309538_4
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.