文件名称:shiyan2
-
所属分类:
- 标签属性:
- 上传时间:2014-06-21
-
文件大小:10.93kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
C++中类与对象的声明与使用
1、定义一个关于长方形的类,编制求长方形周长和面积的程序:求出长135、宽86的长方形的周长和面积,求出长62.2、宽27.5的长方形的周长和面积。
2、设计一个宠物猫的类,猫的属性数据包括: 名字、性别、年龄、体重、颜色,实现对这些数据的修改和显示,编写主程序测试猫的管理。-Statement with the use of classes and objects in C++ 1, define a class on rectangular, rectangular perimeter and area seeking preparation procedure: Find the length 135, width 86 rectangular perimeter and area, find the length 62.2, width 27.5 rectangular perimeter and area. 2, the design of a class pet cat, cat attribute data including: name, gender, age, weight, color, achieve modification and display of these data, write the main program to test the cat' s management.
1、定义一个关于长方形的类,编制求长方形周长和面积的程序:求出长135、宽86的长方形的周长和面积,求出长62.2、宽27.5的长方形的周长和面积。
2、设计一个宠物猫的类,猫的属性数据包括: 名字、性别、年龄、体重、颜色,实现对这些数据的修改和显示,编写主程序测试猫的管理。-Statement with the use of classes and objects in C++ 1, define a class on rectangular, rectangular perimeter and area seeking preparation procedure: Find the length 135, width 86 rectangular perimeter and area, find the length 62.2, width 27.5 rectangular perimeter and area. 2, the design of a class pet cat, cat attribute data including: name, gender, age, weight, color, achieve modification and display of these data, write the main program to test the cat' s management.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
shiyan2.doc
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
