mg_trumpet@yahoo.com:houseroof49 aschouten@yahoo.com:bixby461 dyell577@yahoo.com:mani06 louisklages@yahoo.com:747lou c123vega@yahoo.com:galore corter.steve@yahoo.com:katie1 babyblueluke757@yahoo.com:NEWPORT757 lendamck2@yahoo.com:mexico englandchuck@yahoo.com:money1 yannick_saint_germain@yahoo.com:1972yan darrnell2010@yahoo.com:dj6599463 fabianinyc@yahoo.com:2behappy big_bad_bootydaddy29@yahoo.com:homieg34 joshuabrinton@hotmail.com:member2806 quixoticdave@yahoo.com:foolish1 dianne032365@yahoo.com:trey5555 jmgmr84@yahoo.com:eclipse123 susneeze2@yahoo.com:nb1544 lady_violet77@yahoo.com:bd050769 devout111@yahoo.com:deacon
include<iostream> #include<fstream> #include<cctype> #include<iomanip> 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<<"\nEnter The account No. :"; cin>>acno; cout<<"\n\nEnter The Name of The account Holder : "; cin.ignore(); cin.getline(name,50); cout<<"\nEnter Type of The account (C/S) : "; cin>>type; type=toupper(type); cout<<"\nEnter The Initial amount(>=500 for Saving and >=1000 for current ) : "; cin>>deposit; cout<<"\n\n\nAccount Created.."; } void account::show_account() const { cout<<"\nAccount No. : "<<acno; cout<<"\nAccount Holder Name : "; cout<<name; cout<<"\nType of Account : "<<type; cout<<"\nBalance amount : "<<deposit; } void account::modify() { cout<<"\nAccount No. : "<<acno; cout<<"\nModify Account Holder Name : "; cin.ignore(); cin.getline(name,50); cout<<"\nModify Type of Account : "; cin>>type; type=toupper(type); cout<<"\nModify Balance amount : "; cin>>deposit; } void account::dep(int x) { deposit+=x; } void account::draw(int x) { deposit-=x; } void account::report() const { cout<<acno<<setw(10)<<" "<<name<<setw(10)<<" "<<type<<setw(6)<<deposit<<endl; } int account::retacno() const { return acno; } int account::retdeposit() const { return deposit; } char account::rettype() const { return type; } //*************************************************************** // function declaration //**************************************************************** void write_account(); //function to write record in binary file void display_sp(int); //function to display account details given by user void modify_account(int); //function to modify record of file void delete_account(int); //function to delete record of file void display_all(); //function to display all account details void deposit_withdraw(int, int); // function to desposit/withdraw amount for given account void intro(); //introductory screen function //*************************************************************** // THE MAIN FUNCTION OF PROGRAM //**************************************************************** int main() { char ch; int num; intro();