C++ program to maintain bank record.

The program is not complete as there are a couple of options to be added but the program now should and does run except a little problem with two statements.
the statements commented do not show up on the output screen and generates warnings


Code:
 	
#include<iostream.h> #include<conio.h> #include<stdio.h> #include<process.h> class bank { private: int accno,sum,x; char name[50]; public: bank() { x=0; } void getdata() { cout<<"\nEnter the name of the account holder:"; gets(name); cout<<"\nEnter the account number:"; cin>>accno; cout<<"\nEnter the sum already in the account:"; cin>>sum; } void showdata() { cout<<"\nThe name of the account holder:"; puts(name); cout<<"\nThe account number:"; cout<<accno; cout<<"\nThe sum already in the account:"; cout<<sum; } void deposit(); void withdraw(); }s[10]; void bank::deposit() { cout<"\nEnter the sum you want to deposit:"; //warning:code has no effect. cin>>x; sum+=x; } void bank::withdraw() { cout<"\nEnter the sum you want to withdraw:"; //warning:code has no effect cin>>x; sum-=x; } void main() { clrscr(); int n,k; char ch='y'; cout<<"\n\t\tBANK RECORD KEEPING SYSTEM\n"; cout<<"\nEnter the number of records you want to store(max. 10):"; cin>>n; while(ch=='y') { cout<<"\n1.Enter record"; cout<<"\n2.Display record"; cout<<"\n3.Withdraw funds"; cout<<"\n4.Deposit funds"; cout<<"\n5.Exit\n"; cin>>k; if(k==1) { for(int i=1;i<=n;i++) { s[i].getdata(); } } if(k==2) { for(int i=1;i<=n;i++) { s[i].showdata(); } } else if(k==3) { for(int i=1;i<=n;i++) { s[i].withdraw(); } } else if(k==4) { for(int i=1;i<=n;i++) { s[i].deposit(); } } else if(k==5) { exit(0); } cout<<"\nDo you want to go back to the menu(y/n):"; ch=getche(); } getche(); }