I am coding a console application in C ++, and I need to do something like "load.gif", just using ASCII characters.
The following is a list of the characters I should use:
These characters will make the loading animation by looping.
However, when I write the output, it becomes the following:
Output line 1: - Output line 2: \ Output line 3: | Output line 4: / Output line 5: -
I need to do it like this:
Output line 1: [this will be replaced all the time]
It should not go to the second line.
How can I do this in C ++? Is there any replacement function?
source share