masta calm down man dont flame just becuase you can't help people...
ownzman, there are indeed multiple ways as Dave mentioned and some are more compiler friendly. pausing, sleeping, timer. ill assume your aiming for a more time-based function here's one i found for you:
Code:
#include<iostream.h>
#include<conio.h> // xtra include needed
main(){
int m,s; // minutes,seconds
cout<<"\n\n\n\t\t\t A COUNTDOWN TIMER \n";
cout<<enter time in MINUTES here \t = \t";cin>>m;
cout<<enter time in SECONDS here \t = \t";cin>>s;
cout<<"\n\n\n\n\t press any key to start...!!!";
getch();
clrscr();
cout<<"\n\n\n\t\t\t A COUNTDOWN TIMER \n";
cout<<"\n\n\n\t\t TIME REMAINIG \n\n";
cout<<"\t mins: \t\t seconds: ";
for(int min=m;min>0;min--){
for(int sec=59;sec>=;sec--){
sleep(1); cout<<"\r"<<min<<"\t"<<sec; }
}
for(int rem=s;rem>=0;rem--){cout<<"\r"<<min<<"\t"<<rem;}
cout<<"\n\n ENDED "; return 0;
}
/* end of program */ /* developed by piyush */
Not precise to your point but you can obviousally extract what you need from this, no problem. i fully understand it with a glance, etc.
Design your own xtra function with a time set before activation and it should be easy to have it not interfere with your normal program execution. i added two // but the logic flow is up to you.
credits: google.com ;p