How to Create Bank Management System Programs in C++
// HEADER FILE USED IN PROJECT
//****************************************************************#include
#include
#include
#include
using namespace std;//***************************************************************
// CLASS USED IN PROJECT
//****************************************************************class account
{
int acno;
char name[50];
int deposit;
char type;
public:
void create_account(); //function to get data from user
void show_account() const; //function to show data on screen
void modify(); //function to add new data
void dep(int); //function to accept amount and add to balance amount
void draw(int); //function to accept amount and subtract from balance amount
void report() const; //function to show data in tabular format
int retacno() const; //function to return account number
int retdeposit() const; //function to return balance amount
char rettype() const; //function to return type of account
}; //class ends here
void account::create_account()
{
cout<=500 for Saving and >=1000 for current ) : “;
cin>>deposit;
cout< Type Balancen”;
cout< while(inFile.read(reinterpret_cast (?), sizeof(account)))
{
ac.report();
}
inFile.close();
}
//***************************************************************
// function to deposit and withdraw amounts
//****************************************************************
void deposit_withdraw(int n, int option)
{
int amt;
bool found=false;
account ac;
fstream File;
File.open(“account.dat”, ios::binary|ios::in|ios::out);
if(!File)
{
cout< cin.get();
}
//***************************************************************
// END OF PROJECT
//***************************************************************