РCallList::CallList(char *zcode,char *znum,char *bcode,Р char *bnum,int time)Р{Р?ZCode=zcode;Р?ZNum=znum;Р?BCode=bcode;Р?BNum=bnum;Р?Time=time;Р}РCallList::~CallList()Р{Р" /> РCallList::CallList(char *zcode,char *znum,char *bcode,Р char *bnum,int time)Р{Р?ZCode=zcode;Р?ZNum=znum;Р?BCode=bcode;Р?BNum=bnum;Р?Time=time;Р}РCallList::~CallList()Р{Р" />

全文预览

模拟电信计费系统

上传者:火锅鸡 |  格式:doc  |  页数:30 |  大小:249KB

文档介绍
allList.h"Р#include <string.h>РCallList::CallList(char *zcode,char *znum,char *bcode,Р char *bnum,int time)Р{Р?ZCode=zcode;Р?ZNum=znum;Р?BCode=bcode;Р?BNum=bnum;Р?Time=time;Р}РCallList::~CallList()Р{Р?delete ZCode;Р?delete ZNum;Р?delete BCode;Р?delete BNum;Р}Рvoid CallList::Set(char *zcode,char *znum,Р?char *bcode,char *bnum,int time)Р{Р?ZCode=new char[strlen(zcode)+1];Р?strcpy(ZCode,zcode);Р?ZNum=new char[strlen(znum)+1];Р?strcpy(ZNum,znum);Р?BCode=new char[strlen(bcode)+1];Р?strcpy(BCode,bcode);Р?BNum=new char[strlen(bnum)+1];Р?strcpy(BNum,bnum);Р?Time=time;Р}Рvoid CallList::Print()Р{Р?cout<<" "<<ZCode<<" "<<ZNum<<"\t"Р <<BCode<<'\t'<<BNum<<"\t\t"<<Time<<endl;Р}Рchar *CallList::getZC()Р{Р?return ZCode;Р}Рchar *CallList::getZN()Р{Р?return ZNum;Р}Рchar *CallList::getBC()Р{Р?return BCode;Р}

收藏

分享

举报
下载此文档