Results 1 to 2 of 2

Thread: atm like program.

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2002
    Posts
    5

    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?

  2. #2
    Fanatic Member McCain's Avatar
    Join Date
    Jan 2002
    Location
    Sweden/Denmark
    Posts
    802
    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...
    Never argue with fools, they will only drag you down to their level, and beat you with experience.

    Q: How do you tell an experienced hacker from a novice?
    A: The latter thinks there's 1000 bytes in a kilobyte, while the former is sure there's 1024 meters in a kilometer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width