Write Cpp program to represent bank account using member function
Define a class to represent a bank account which include following member data member:- 1)name 2)Account number 3)type of account 4)bal.amt member function: a.to assign initial value b.to deposit an account c.to withdraw an account d.to display name,account number and balance #include<conio.h> #include<iostream.h> #include<string.h> int w_amt; class bank { public:int acc_no,bal; char type[30],name[30]; public:void assign() { strcpy(name,"Vijay"); acc_no=111; strcpy(type,"saving"); bal=12000; } void deposit() { int amt; cout<<"\n Enter the amount which you want to deposi...