There is a simple program that makes long calculations. I would like at each iteration of the loop to output its number (or the current percentage of completion) to the console, while preferably changing only the last line. For example, the output
Start Function result 45123 Testing ... Comleted 45% So, in the course of time, it would be necessary to change only the Comleted 45% line and not touch the rest. Conclusion done through cout . How to do this?