⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 banking.h

📁 这是一个银行系统的管理软件
💻 H
字号:
/**********************************************************************************
*                                                                                 *
*  Henry Banking System ATM Module                                                *
*  Copyright (c) 2004 by Henry. All rights reserved.                              *
*                                                                                 *
*  Permission to use, copy, modify, and distribute this software for any purpose  *
*  is hereby granted without fee, provided that this copyright and permissions    *
*  notice appear in all copies and derivatives, and that no charge may be made    *
*  for the software and its documentation except to cover cost of distribution.   *
*                                                                                 *
*  This software is provided "as is" without express or implied warranty.         *
*                                                                                 *
**********************************************************************************/

/*
*  Description:
*
*    This is the instance module of account.
*
*  Notes:
*
*    This code has been written to conform to standard C++ and STL. It has been
*    compiled successfully using Visual C++ 7.0.
*/
#ifndef GUARD_banking_h
#define GUARD_banking_h

#include <string>
#include <vector>
#include "dataSet.h"
using namespace std;

#define CARD_NO   0
#define NAME      1
#define PASSWORD  2
#define AMOUNT    3
#define DATE_TIME 4

#define DEALING_ID				0
#define DEALER_CARD_NO		1
#define DEALING_AMOUNT		2
#define DEALING_TYPE			3
#define DEALING_DATE_TIME	4

namespace banking
{
class System
{
private:
	DataSet record;
public:
	System();
	size_t getCurrentCardNo();
	size_t generateNewCardNo();

	size_t getCurrentDealingId();
	size_t generateNewDealingId();
};

class Account : public DataSet
{
public:
	Account();
	//Properties
	string getCardNo();
	void setCardNo(string cardNo);

	string getName();
	void setName(string name);

	string getPassword();
	void setPassword(string password);

	double getAmount();
	void setAmount(double amount);

	string getDateTime();
	void setDateTime(string dateTime);

	//Methods & Functions
	bool searchByCardNo(string cardNo);
	bool login(string cardNo, string password);
	void createAccount(string name, string password);
	virtual string toString();
};

class Dealing : public DataSet
{
public:
	Dealing();

	//Properties
	string getDealingId();
	void setDealingId(string dealingId);

	string getDealerCardNo();
	void setDealerCardNo(string dealerCardNo);

	double getDealingAmount();
	void setDealingAmount(double dealingAmount);

	string getDealingType();
	void setDealingType(string dealingType);

	string getDealingDateTime();
	void setDealingDateTime(string dealingDateTime);

	//Methods & Functions
	void appendDealing(string cardNo, double amount, string type);
	void printBill();
	virtual string toString();
};
}

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -