How to replace this with REAL keyboard input ..... account1.debit( 25 ); ?
Lets say your present balance is $50.00
account1.debit( 25. );
I hope some of you have a clue of what this code does. If not, account1 calls the debit function of the program and pass this embedded value of 25.00 to be subtracted from the balance and display the results. No need to provide the whole source code, you might get more confuse.
Using enbeded values in the source code ... being taught this way is ass-backward. How about you type in 25 or any other number and HIT-ENTER and the function do the same thing. Is that too hard to understand in words, Well let me show and tell you ...
It must be rocket science for C++ because the subject is way up in chapter-15 of Deitel C++ and we on chapter-13. No wonder I never figure out how to do it and no one here had a clue of what I was talking about... or they pretended very well.
Anyway, Deitel got nineteen examples for stream_manipulator using getline(cin, yourVar) and there is "NOT A SINGLE EXAMPLES" that will do what I just detailed twice here. It would be the first question a 6-grader would ask... That's great but can I type it in????
Now I see whay my questions are too advance, even Deitel never taught no body how-to.
Where do I have to go to obtan this kind of information using real C++ code? I found NOTHING here that can do this SHOULD BE simple thing.
Previous reply on other thread did not work. Maybe the qestion is made more clear for all to understand. I can upload all 19 Deitel examples but it will make you feel so ashame that this simple 3rd grade requiest is not in the package.