printf(\"Error %d\\n\", 1);
printf(\"\\nStatus: %d%%\", 50);
prints
Error 1
Status: 50%
In this set up, is ther
You could use ANSI Escapesequences to move your "cursor" one line up:
void cursorOnLineUp(void) { printf("\033[1A"); }
Or set it to a specific position:
void setCursor(int column, int row) { printf("\033[%d;%dH", row, column) }
Haven't tried it for C++, but succesfully used it for a simple game in ANSI-C!