Probably going against every standard known to man, but what about something along the following lines?
Code:
#include <stdio.h>
#include <conio.h> //included for clrscr, clear the screen however you like
#include <dos.h> // included for sleep on my DOS compiler
int main ()
{
clrscr();
int count = 10;
do
{
printf ("\r Remaining time: %i ",count);
count = count -1;
sleep(1);
}
while (count > 0);
return 0;
}
No reason you couldn't use cout with "\r" I guess, for some reason my fingers wanted printf.