need help whit C++

Posts 1–5 of 5 · Page 1 of 1
need help whit C++
can somebody help my whit make a timer i dont know how to do .
but how can i make the module undetected
and how can i find all module's for C++
You already posted 3 threads with 'help with C++' ... Stop triple posting
i need help thats the whole problem srry for questons
There are multiple ways of setting up timers, which compiler are you using and what are you writing exactly?
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
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Talk with us