文件名称:case
介绍说明--下载内容均来自于网络,请自行研究使用
王婆卖瓜,每卖一个瓜记录该瓜的重量,还要记录所卖出的总重量和中个数。同时还允许退瓜。用面向对象方法设计王婆卖瓜的程序,首先要设计类。以西瓜为对象,对西瓜watermelon类定义各种属性和操作。现在用动态内存分配的方案编写该程-Every potter praises his record that each sell a melon melon s weight, but also record the total weight sold and the number. It also allows the back melon. Object-oriented program designed potter praises, we must first design class. Watermelon as the object of the class definition watermelon watermelon variety of attributes and operations. Now with dynamic memory allocation scheme to prepare the way
(系统自动生成,下载前可以参看下载内容)
下载文件列表
case.doc