SRC - BANK

Health is everything

HEALTH RELATED TOPICS

HEALTHY HABITS

HOROSCOPE

EARN AT HOME

LOVE

GAMES

DOWNLOADS

C++ TUTORIALS

CONTACT

/* *********************************************
PASTE THIS CODE IN YOUR TURBOC (Any problem in project contact me)
/* ********************************************* /
Project: Implements the simple bank operation by using a c++ program
Project developed by Computer Education Center-Paschim vihar *******************************************************************/

#include iostream.h //for input and output stream regulation
#include process.h //for exit()
#include string.h> //for strlen() and strcmp()
#include conio.h //for getch(),clrscr() and cprintf
#include stdio.h //for gets,printf,scanf
#include graphics.h //for graphics features
#include dos.h //for deley and sound commands
#include fstream.h //for file related operation
#include ctype.h //for toupper function
//**** PROTOTYPE OF FUNCTIONS ETC.*********************
void gra1();
void gra2();
//Program segment to display some graphicv
oid box(int,int);
void edit_menu(void);
void display_account(void) ;
void display_list(void);
void man();
void graphics();
/*************************** GRAPHICS ***************************/
void graphics()
{int aq1=VGA,aq2=VGAHI;
initgraph(&aq1,&aq2,"c:\\tc\\bgi");}
//****************************************************************
// THIS FUNCTION IS RELATED TO MAIN MENU SCREEN SHOWING PIXEL ETC.
//****************************************************************
void man(){graphics;
settextstyle(7,0,7);
switch(ch)
{ case 1:{ account a ; a.display_account() ; }
break;
case 2:{ initial ini ; ini.display_list() ; }
break;
case 3:{ account a ; a.transaction() ; }
break;
case 4:{ account a ; a.new_account() ; }
break;
case 5:{ edit_menu() ; }
break;
case 6:{ exit(0); }
}closegraph();}}
//************************************************************************
// CLASS CONTROL :: FUNCTION TO DISPLAY EDIT MENU AND CALL OTHER FUNCTIONS
//************************************************************************void control :: edit_menu(void)
{char ch ;while (1){closegraph();
;shape s ;s.box(10,5,71,21,219) ;s.box(9,4,72,22,218) ;
textcolor(BLACK) ;textbackground(WHITE) ;
cprintf(" EDIT MENU ") ;textcolor(LIGHTGRAY) ;
textbackground(BLACK) ;gotoxy(31,12) ;
cout <<"1: MODIFY ACCOUNT" ;gotoxy(31,13) ; cout <<"2: CLOSE ACCOUNT" ;gotoxy(31,14) ; cout <<"0: QUIT" ;gotoxy(31,16) ; cout <<"Enter your choice: " ;ch = getche() ; if (ch == 27)break ;elseif (ch == '1'){initial ini ;ini.modify() ;break ;} elseif (ch == '2'){account a ;a.close_account() ;break ; } elseif (ch == '0'){break;} }} //************************************************************************ // THIS FUNCTION DISPLAY THE ACCOUNT FOR GIVEN ACCOUNT NO. FROM THE FILE initial.txt //************************************************************************ void initial :: display(int t_accno) {shape s ;s.box(8,7,73,11,219) ;fstream file ; file.open("initial.txt", ios::inios::binary) ;file.seekg(0,ios::beg) ; while (file.read((char *) this, sizeof(initial))) {if (t_accno == accno){gotoxy(8,5) ; cout <<"ACCOUNT NO. "; ;cout <<"Name : cout <<"Address : ";gotoxy(10,10) ;cout <<"Balance : " ;break ;} }