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