文件名称:cclasspoint
介绍说明--下载内容来自于网络,使用问题请自行百度
首先定义一个点类Point,其私有成员为其坐标X,Y。设计构造函数,拷贝构造函数,析构函数(可以什么都不做,只打印信息,表示其被调用),设置新值函数Set, 打印成员值函数Print。再定义一个线类Line,线类是在公有继承点类的基础上,新增私有成员斜率S,并设计构造函数,拷贝构造函数,析构函数(可以什么都不做,只打印信息,表示其被调用),设置新值函数Set, 打印成员值函数Print以及其它你认为对访问此Line类对象有用的成员函数。并用此Line类定义对象,调用所有成员函数。尤其是考察构造函数的调用顺序。-definition of a first spots Point, for its private members coordinates X, Y. Design Constructors, the copy constructor and destructor function (nothing can be done only print information that his was called), A new function Set, members of Print Print function. Further definition of a linear Line, the line is the successor in public spots, on the basis of the new private members slope S, Construction and design function, the copy constructor and destructor function (nothing can be done only print information, said its was called), set up the new function Set, Print Print function members and other right that you visit this category Line useful members of object function. Line and use this definition of object type, called all the members function. In particular function is to investigate t
(系统自动生成,下载前可以参看下载内容)
下载文件列表
class point.doc
www.dssz.com.txt
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.