Ok so in the code down below I have made a program, the problem is that once I reset the program I need to keep the area's that have already been input. Is there a way to do this?
The simplest solution would be to write the information to a text file. If they already inputted the number then write it to the file if not write a -1 or something similar in that place and next time you run the program you need to read the numbers back in and where theirs a -1 you need to still get that info.
If the program finishes, the data is gone. If you're not happy creating a file to store the data, you don't have many other options. Pretty much no other options; anything else would just be a variation on storing data elsewhere.
I viewed your question the same way Repeater did. That by "once I reset the program" you meant that the program closed and you launched the application again. After further inspection, I see that you are using a goto to "restart' your program, which I believe is what you are referring to. First off, NO! Do NOT use a goto, it is bad programming practice. Use a loop! Next, ok I'm confused what you are trying to do, why do you need to keep data between runs? And in fact you currently are, just when you get new user input you replace the old value. So, what are you trying to do with saving the data between runs?
If you are not closing the application then you can store it in any simple data structure I don't know what you have learned yet but you could easily just create a vector to store the values.
I have not learned to do vectors, do you have a suggestion on how to redo the program to make it easier using basic c++? (I don’t mind re doing all the code)
Without using some sort of data structure there is not really any good way. You could create another group of variables to store whatever the last value was that one of your main variables held but this is very inefficient and would only store the last value used. If you haven't learned vectors yet, have you learned how to use arrays?
Yeah I know how to use arrays, after further reading of the instructions I only had to make it to where they can input 2 shapes, so I am good Thanks for helping me!