文件名称:java
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:2.15kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
写一个人类person,其数据成员为char ﹡name int age 表示姓名和年龄,写出其构造函数设PX是一个指向类动态的指针变量,则执行delete px 语句时,将自动调用该类的()3,若需要把一个函数,voidF() 定义为一个类AB的友元函数,则应在类AB的定义中加入一条语句:()
4编程题
1,写一个人类person,其数据成员为char ﹡name int age 表示姓名和年龄,写出其构造函数,拷贝构造函数,析构函数。
A。假定每月都是30天,每年都是360天。
B。通过主函数定义一个DATE类对象,调用重载函数,输出相加后的新日期。-Write a human person, the data members char* name int age that name and age, to write the constructor set PX is a pointer variable pointing to the dynamic class, you perform delete px statement, it will automatically call the class of () 3, For want of a function, voidF () defined as a class AB, a friend function, should be the definition of the class AB to add a statement: () 4 1 programming problem, write a human person, the Data members char* name int age that name and age, to write its constructor, copy constructor, destructor. A. Assume that is 30 days per month, every year 360 days. B. DATE main function is defined by a class object, call the overloaded function, the output sum of the new date.
4编程题
1,写一个人类person,其数据成员为char ﹡name int age 表示姓名和年龄,写出其构造函数,拷贝构造函数,析构函数。
A。假定每月都是30天,每年都是360天。
B。通过主函数定义一个DATE类对象,调用重载函数,输出相加后的新日期。-Write a human person, the data members char* name int age that name and age, to write the constructor set PX is a pointer variable pointing to the dynamic class, you perform delete px statement, it will automatically call the class of () 3, For want of a function, voidF () defined as a class AB, a friend function, should be the definition of the class AB to add a statement: () 4 1 programming problem, write a human person, the Data members char* name int age that name and age, to write its constructor, copy constructor, destructor. A. Assume that is 30 days per month, every year 360 days. B. DATE main function is defined by a class object, call the overloaded function, the output sum of the new date.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ren.java
复件 (2) ren.java
复件 (3) ren.java
复件 (4) ren.java
复件 (5) ren.java
复件 ren.java
复件 (2) ren.java
复件 (3) ren.java
复件 (4) ren.java
复件 (5) ren.java
复件 ren.java
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.