i have a lot of code to be executed instead of cout.. i just couted to make my question breif and straight to the point.
to answer you anyways.. if i used
This is what i will get:
there
there
there
there
there
there
there
there
.. and forever
but if i use \r before "there" it will just overwrite it instead of priniting after it. so you will only have one ouputed line instead of a kazillion .
i usually use that when im debugging in an infinite loop as such. or to make a counter that keeps incrementing and views on one line only.