Você está na página 1de 2

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

Help with Code Tags


C++ Syntax (Toggle Plain Text)
1. #include<iostream.h>
2. #include<conio.h>
3.  
4. void main()
5. {
6. char indent;
7.  
8.  
9. Savings saving[3];
10. Checking check[3];
11. Account accoun[3];
12. int num=1001;
13. float moo;
14. for(int x=0;x<3;x++)
15. {
16. cout<<"\t\t*****This IS THE ACCOUNT NUMBER: "<<num<<"*****"<<endl;
17. cout<<"Please enter the type of transaction you want(c-checking and s-
savings)";
18. cin>>indent;
19. cout<<endl;
20. switch(indent)
21. {
22. case 'c':
23. {
24. cout<<"Enter monthly amount ";
25. cin>>moo;
26. accoun[x].set(num,moo);
27. check[x].set_ch();
28. break;
29. }
30. case 's':
31. {
32. cout<<"Enter monthly amount ";
33. cin>>moo;
34. accoun[x].set(num,moo);
35. saving[x].set_in();
36. break;
37. }
38. default:
39. {
40. cout<<"*******you entered the wrong data********\n" ;
41. }
42. }
43. num++;
44. }
45. cout<<"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++";
46. for(int k=0;k<3;k++)
47. {
48. accoun[k].display();
49. saving[k].display_savings();
50. check[k].display_checking();
51. }
52. getch();
53. }

Você também pode gostar