Is there a way in C++ to get to the next line without CR (carriage return), essentially moving a line down.
std::cout << "Hello\nworld!"
output should be something like this
Hello
world!
I also tried form feed but it prints Hello♀world!
EDIT-
Looks like I'm not very clear, so let me explain a bit more.
Windows a long time ago used CRLF for new line i.e \r\n
. Here \r
is meant to move cursor to far left of screen while \n
moves cursor a line down. However, \n
when printed brings cursor to left and a line down. I just want the initial role of \n
back which just moving a line down at same column...