📄 wateruser.h
字号:
// WaterUser.h: interface for the WaterUser class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_WATERUSER_H__CE06D469_9995_47B9_A96B_BB9347CED5D7__INCLUDED_)
#define AFX_WATERUSER_H__CE06D469_9995_47B9_A96B_BB9347CED5D7__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 WaterUser
{
public:
WaterUser(){}
WaterUser(CString gas,double co);
CString Getwaterno(){return waterno;} //获取号码
double Getcost(){return cost;} //
void reloadcost(double co){cost=co;} //重载话费,用于交纳话费后的清零
static WaterUser *searchwateruser(CString gas); //查询电话用户并返回该用户指针
static bool storageP(); //存储链表
virtual ~WaterUser();
protected:
CString waterno; //电话号码
double cost; //话费
static WaterUser *pFirstP; //链表头指针
WaterUser *pNextP; //下一节点指针
};
ostream& operator <<(ostream & out ,WaterUser &phu);
#endif // !defined(AFX_WATERUSER_H__CE06D469_9995_47B9_A96B_BB9347CED5D7__INCLUDED_)
/*
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -