Hello. I am a complete noob when it comes to C++. This is a homework question. Feel free to either tell me exactly what I am doing wrong, or give me a hint. I have tried everything I can think of though, and I have no idea where this is going wrong. Basically one of my assignments is to write a program where you can input the month and total money collected. I'm then supposed to display a table where those values entered are then broken down into various categories.
My problem is after I enter a month, the program closes. I cannot get it to remain open past that stage and cannot progress any further. Thank you.
Please provide a sample input that exhibits this problem, and the program's output (if any).
Note that you must enter strings that look like a valid int: you can't enter "January", for example, when prompted for the month. Entering something invalid will indeed cause the behavior you're describing.
Why are you ignoring parts of your input? (You don't need to do this, although it doesn't make any difference here.)