I really thank you for helping me to go back to programming in C++. You know I am now 73 years old. They told me I have to stay busy to stay healthy.
I am running a c++ program; the problem is the output will show only the end. The beginning of the output is lost.
A simple solution is to send the output to a file, so you can examine it later. Your operating system already has this capability, so you don't need to modify your program to do it. When you run your program, simply add a redirection at the end of your command, like so: your_program > output.txt
Then you can read output.txt with any text editor.
Keep in mind that if your program is interactive (i.e. if it asks for input once it has started running) you will not be able to see the prompts, which will make the program much more difficult to use. If this is the case, you'll need to modify your program to send output to a file instead of (or as well as) the console.