Hello, I have very strange problem with printing data in console using '\r'. I would like to show current time of a football match in my program and i would like to do it in one line(new value erase old one) and this is the most logical use of '\r'. After compiling without any errors program runs, but there is no expected effect.
I'm using GCC 4.3.3-1(latest for my distro).
Here's code. Most of variables are in Polish, but I hope it won't be a problem
I don't think the problem is with the '\r' (but I could be wrong!). I think it likely that your delay function is just way too fast.
Here's a quick replacement (works on both Win32 and POSIX systems)
Hello, thank you for your answer. I tried your suggestion, but it still doesn't work. I also tried wait function that uses <ctime> librery form this site.