Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Because \n translates to a new line, and \b can no longer return to it and overwrite something - it is limited to its own line.
You without \n text word just rewrites the command line prompt.
It looks like this code does what you need:
#include <iostream>
int main() {
std::cout << "word" << "\b\b\b\b \n";
return 0;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question