After getting the program to run this is what I saw:
Your program starts with:
This is asking much of the user to enter the correct choice. You will find that a user will break your program without even trying when they enter something like "Show" or SHOW" because the had "Caps Lock" turned on and you did not account for this. Not to mention the spelling mistakes that can happen. This is to much to ask of the user.
I think you will find this better:
std::cout << std::fixed << std::showpoint << std::setprecision(2);
<< "\n 1. Spend"
<< "\n 2. Show"
<< "\n 3. Amount >="
<< "\n 4. Save file"
<< "\n 5. Help"
<< "\n 6. Exit\n"
<< " Enter choice: ";
cin >> choice;
3. Amount >=
4. Save file
I do not know what you can use, but I followed the input here with a "switch" which calls the necessary functions. If you are not up to functions you can put the code in the case statements. And if you are not familiar with a switch you can use if/else if statements with the final else statement to catch anything that is invalid.
It would also be a good idea to follow the menu choice with some kind of verification to know that only a valid choice was entered. This can also be handled in the "default' case section or the final "else" of the "if/else" if statements.
For now I created two functions for the menu choices. One "Show()" and the other "Report()" although this should have a better name to describe what it does.
In the functions I started with the same idea that coder777
has suggested. If you are not familiar with or able to use a range base for loop a regular for loop will work.
Just for fun I added a sort routine, but that will take some work to set up to use the third parameter of "std::sort".
After getting the program to run I realized what the "else if" on line 36 is for. By its self you can not have just an "else if" you would need at least:
if (choice == 1)
The alternative with the switch is that you can leave out the case statements that you are not ready for yet.
Hope that helps,