+ 1

Replace existing output line in C++

This might be a stupid question but I want to know how to replace an existing output in C++. For example, if I were to print multiple things to the command line it would either add on to the current line or break to a new line. Here's an example picture of what I'm talking about: https://i.stack.imgur.com/G7xH3.png

11th May 2018, 10:35 PM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
3 Respostas
0
not sure, Ben Allen (Njinx) but if this helps, in c its: system("clear"; and i know C++ share a ton of the same syntax so
10th Oct 2024, 5:04 PM
Xmosity
0
it clears every like in the command line though
10th Oct 2024, 5:04 PM
Xmosity
0
so youd have to immediately print it back to make the effect of clearing it and HOLY SHIT THIS WAS 6 YEARS AGO
10th Oct 2024, 5:04 PM
Xmosity