📄 tollerinfo.h
字号:
/////////////////////////////////////////////////////////////
//TollerInfo.h
//Define the CTollerInfo class
//
//
/////////////////////////////////////////////////////////////
#ifndef _TOLLERINFO_H
#define _TOLLERINFO_H
//#include "stdafx.h"
#include "tolldef.h"
class CTollerInfo:public CObject
{
public:
//constructors
CTollerInfo();
CTollerInfo(CTollerInfo&);
CTollerInfo(char* aLoginName,
char* aIPAddr,
int aSubTotal,
int aTotal);
CTollerInfo(TOLLERINFO* pti);
~CTollerInfo();
//operations
void Put(CString sLoginName,
CString sIPAddr,
int aSubTotal,
int aTotal);
CString GetLoginName();
//convert the toller info to a TOLLERINFO struct
void GetInfoStruct(TOLLERINFO& tis);
void Put(CTollerInfo& ti);
public:
//attributes
char szLoginName[7];//user login name
char szIPAddr[16];//IP Address
int nSubTotal;//from 12:00 at last night to now,the traffic
int nTotal;//from last toll date,every month toll
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -