سورس پروژه مدیریت بانک با زبان سی پلاس پلاس ++C
سلام به همراهان گرامی، در این پست از وب سایت برنامه نویسی نوآوران گرمی مرجع پروژه های دانشجویی ، سورس پروژه مدیریت بانک با زبان سی پلاس پلاس ++C را آماده کرده ایم که دارای امکانات زیر می باشد: نمایش اطلاعات حساب، نمایش لیست حساب ها، نمایش انتقالات، ایجاد حساب جدید، ویرایش اطلاعات حساب.
قابل ذکر است که سورس پروژه مدیریت بانک برای اطلاعات حساب با فایل های متنی کار می کند. از این برنامه می توانید به عنوان یک پروژه کلاسی استفاده نمائید. امیدواریم که مورد استفاده شما دوستان قرار گیرد.
در ادامه مطلب قسمت های از سورس پروژه مدیریت بانک با زبان سی پلاس پلاس را می توانید مشاهده کنید.
تکه کد سورس پروژه مدیریت بانک با سی پلاس پلاس:
جهت دریافت کد کامل این برنامه از قسمت خرید محصول اقدام کنید
#include<fstream.h>
#include<ctype.h>
#include<iomanip.h>
#include<conio.h>
#include<stdio.h>
class account
{
int acno;
char name[50];
int deposit;
char type;
public:
void create_account(); //function to get data from user
void show_account(); //function to show data on screen
void modify(); //function to get new data from user
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(); //function to show data in tabular format
int retacno(); //function to return account number
int retdeposit(); //function to return balance amount
char rettype(); //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 : ";
gets(name);
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()
{
cout<<"\nAccount No. : "<<acno;
cout<<"\nAccount Holder Name : ";
cout<<name;
cout<<"\nType of Account : "<<type;
cout<<"\nBalance amount : "<<deposit;
}
void account::modify()
{
cout<<"\nThe account No."<<acno;
cout<<"\n\nEnter The Name of The account Holder : ";
gets(name);
cout<<"\nEnter Type of The account (C/S) : ";
cin>>type;
type=toupper(type);
cout<<"\nEnter The amount : ";
cin>>deposit;
}
void account::dep(int x)
{
deposit+=x;
}
void account::draw(int x)
{
deposit-=x;
}
void account::report()
{
cout<<acno<<setw(10)<<" "<<name<<setw(10)<<" "<<type<<setw(6)<<deposit<<endl;
}
int account::retacno()
{
return acno;
}
int account::retdeposit()
{
return deposit;
}
char account::rettype()
{
return type;
}
//***************************************************************
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
خروجی برنامه: