lol, im am being dumb...
final thing is...
Code:
{
int pos;
pos = cout.tellp();
if ( n <= 0)
cout << "Blast off!" << endl;
else {
//cout.seekp(0);
cout << "Countdown at time " << n << "\r";
sleep(1);
cout.flush();
//cout.seekp(pos+10);
count_down(n - 1);
}
}
I was stupid and left the << endl haha! silly me
I want to say thanks everybody for your help.
it really makes oss and the community work.
I know this isnt the most best use of your great programming skill, but thanks!