Okay, what part are you having trouble with? Keep in mind that if you say you haven't done anything yet, I'll tell you to get lost. If you have done something, you'll need to prove it. Why? Because this is obviously homework, it's obviously easy if you put in a little effort, and maybe I just don't like you.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
Very close, but inBalance is a stream, not an integer. After you open the file, do something like this:
int balance;
inBalance>> balance;
Then use balance and checkAmount for your conditional statements.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
Whats wrong here? Are you having a problem or do you expect someone to write the program for you?
jasweb2002
Junior Poster in Training
56 posts since Sep 2004
Reputation Points: 11
Solved Threads: 2
>can anyonehelp me
I did help you. If you have a new question then ask it. The logic for this program is simple, so either you're very stupid, or very lazy. I prefer to assume the latter, so explain exactly what your problem is and we'll help. But we won't do it for you.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401