telephoneuser1.h
来自「一个模仿ATM提款机的MFC程序」· C头文件 代码 · 共 44 行
H
44 行
// 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 + =
减小字号Ctrl + -
显示快捷键?