This works for me:
std::cout << "1111";
std::cout << "
";
std::cout << "2222";
is a carriage return symbol. Puts the "cursor" back to the beginning of the line.
Alternatively you can use
character. This is backspace. When printed it goes one character back.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…