文件名称:Classes-and-objects-practice
介绍说明--下载内容均来自于网络,请自行研究使用
1. 声明通讯录类cComm包含姓名(Char*类型)、地址(char[50]类型)、订货量(int型)、总量(int型,静态数据成员),默认构造函数(分别用"David"、"Long island"、200)、复制构造函数、输出函数。使用c0、c1("Tina","Weiland mur",150)、c2(c1)、c3("Wei fei")、c4("Wash Lehn","Washington")检验,并输出四个订货量的总和)
2. 设计词典cDic类,从列表{asdfghjkl}查找对应位置的数字{123456789}或相反,建立转换函数,并将"akdhskgjfshd"和"125445274652794587365"分别转换-A statement address book class cComm of containing the name (char* type), address (char [50] type), order quantity (int), total (int type, static data members), the default constructor (with " David " Long Island" , 200), copy constructor, the output function. C0, c1 (" Tina" , " Weiland mur, 150), C2 (c1), C3 (Wei Fei), C4 (" Wash Lehn " ," Washington " ) test, and outputs the four-order quantity sum) Design Dictionary the CDIC class, find the corresponding position of the figures from the list {asdfghjkl} {123456789}, or vice versa, create a conversion function and " akdhskgjfshd" and " 125445274652794587365" conversion
2. 设计词典cDic类,从列表{asdfghjkl}查找对应位置的数字{123456789}或相反,建立转换函数,并将"akdhskgjfshd"和"125445274652794587365"分别转换-A statement address book class cComm of containing the name (char* type), address (char [50] type), order quantity (int), total (int type, static data members), the default constructor (with " David " Long Island" , 200), copy constructor, the output function. C0, c1 (" Tina" , " Weiland mur, 150), C2 (c1), C3 (Wei Fei), C4 (" Wash Lehn " ," Washington " ) test, and outputs the four-order quantity sum) Design Dictionary the CDIC class, find the corresponding position of the figures from the list {asdfghjkl} {123456789}, or vice versa, create a conversion function and " akdhskgjfshd" and " 125445274652794587365" conversion
(系统自动生成,下载前可以参看下载内容)
下载文件列表
类和对象编程二参考答案.doc