Hi everyone
I have a small program on ATM transaction that i did on console application in C++ and i am having difficulty converting it to GUI and i dont understand why.Here is the code if you can do it plz send me the coding i will gladly appreciate it
#include<iostream.h>
#include<conio.h>
void main()
{
char indent;
Savings saving[3];
Checking check[3];
Account accoun[3];
int num=1001;
float moo;
for(int x=0;x<3;x++)
{
cout<<"\t\t*****This IS THE ACCOUNT NUMBER: "<<num<<"*****"<<endl;
cout<<"Please enter the type of transaction you want(c-checking and s-savings)";
cin>>indent;
cout<<endl;
switch(indent)
{
case 'c':
{
cout<<"Enter monthly amount ";
cin>>moo;
accoun[x].set(num,moo);
check[x].set_ch();
break;
}
case 's':
{
cout<<"Enter monthly amount ";
cin>>moo;
accoun[x].set(num,moo);
saving[x].set_in();
break;
}
default:
{
cout<<"*******you entered the wrong data********\n" ;
}
}
num++;
}
cout<<"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++";
for(int k=0;k<3;k++)
{
accoun[k].display();
saving[k].display_savings();
check[k].display_checking();
}
getch();
}