📄 telephoneuser1.h
字号:
// TelephoneUser1.h: interface for the TelephoneUser class.
//
///////////////////////////电话用户///////////////////////////////////////////
#if !defined(AFX_TELEPHONEUSER1_H__1FB5CD1E_8C2F_44EE_AAD2_0E20501822FC__INCLUDED_)
#define AFX_TELEPHONEUSER1_H__1FB5CD1E_8C2F_44EE_AAD2_0E20501822FC__INCLUDED_
#include "stdafx.h"
#include <iostream.h>
#include <time.h>
#include <math.h>
#include <conio.h>
#include <stdlib.h>
#include <fstream.h>
#include "account.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class TelephoneUser
{
public:
TelephoneUser(){}
TelephoneUser(CString telephone,double co);
CString Gettelephoneno(){return telephoneno;} //获取号码
double Getcost(){return cost;} //
void reloadcost(double co){cost=co;} //重载话费,用于交纳话费后的清零
static TelephoneUser *searchtelephoneuser(CString gas); //查询电话用户并返回该用户指针
static bool storageP(); //存储链表
virtual ~TelephoneUser();
protected:
CString telephoneno; //电话号码
double cost; //话费
static TelephoneUser *pFirstP; //链表头指针
TelephoneUser *pNextP; //下一节点指针
};
ostream& operator <<(ostream & out ,TelephoneUser &phu);
#endif // !defined(AFX_TELEPHONEUSER1_H__1FB5CD1E_8C2F_44EE_AAD2_0E20501822FC__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -