void main()
{
clrscr();
int acno;
char *depos_name;
float bal_amt;
cout<<"\n\nEnter account number : ";
cin>>acno;
cout<<"Enter depositor name : ";
cin>>depos_name;
cout<<"Enter balence amount : ";
cin>>bal_amt;
BANK obj1 = BANK(acno,depos_name,bal_amt);
obj1.show();
float depos_amt;
cout<<"\n-------------------------------";
cout<<"\nEnter amount for deposit : ";
cin>>depos_amt;
obj1.deposit(depos_amt);
obj1.show();
getch();
}
No comments:
Post a Comment