The \r is supposed to output a new line. Older versions of OSX with XCode did not run all the escape codes. Some behaved awkwardly. But the newest OSX is supposed to have fixed the \r option.
Remember, XCode console is not a Terminal, so it was not meant to be run like one using escape codes, which is what \n and \r and \b and others like it is.
yeah i know they are escape codes but i did (in cout) \r with the newest xcode, and i put it between text and Text but there was just a space. is this a bug?
Yea in XCode the escape codes did not work. Not all of them at least. Couple did. And so they were supposed to fix this with the newest OSX Lion version. Is this the Operating System your on ? If not, that's why it doesn't work.