+ 1

remove last output C++

How can i remove the last output of a code so it cannot stack them in CMD and not to show all the process ? lets say if i have a number generator and it will generate me a number each time i type "number. i want to see ONLY one number each time i type it , so if i type 100 times "number" the CMD will only show one number and not all 100 of them ?

5th May 2018, 12:03 PM
Dichonia
Dichonia - avatar
4 Respostas
+ 2
We don't have a function to clear the screen in namespace std.
5th May 2018, 3:11 PM
Timon Paßlick
+ 1
clrscr();
5th May 2018, 2:34 PM
Sreejith P
Sreejith P - avatar
+ 1
There is no way to do that without additional libraries.
5th May 2018, 2:45 PM
Timon Paßlick
0
Can you clarify please ?
5th May 2018, 3:10 PM
Dichonia
Dichonia - avatar