-
atm like program.
Hi,
I have to create this program, for a project.
"assume a client has an account with $1,000, give them a possiblity of
"what would you like to do ?"
1. Make a deposit (press D)
2. widthraw money (press W)
3. See account info (press A)
4. Exit the pogram (press E)
After each individual operation. ask them "Do you want to continue? and keep them in the loop (main menu). at the end, show a summary of the account.
I am difficult in creating this, cause my current teacher just give us the work and tell us to figure it out. This is only my first year in C++ and so far I know that i am suppose to use the "while" function. is there any tutorial that has this program? or any of you guys could guide me to which command I need to use?
-
Over at www.gametutorials.com they have a tutorial explaining how to recieve keyboard input in the console, you should check it out. When you know what the user wants to do it is just a matter of subtracting or adding to an integer variable...