Computer problems,Computer help
*AX SOFT>>>Programming & Design

A countdown timer done in C..?? is it possible...??


<example>
00:00:00...(if user change the time, for instance, it would be...)
00:05:00...
00:03:00 (after 2min)
00:01:05 (after 3min and 55sec)
and so on...

I'm a newbie in C, can somebody pls give me the code of this... tnx...脺

Based on this:

#include <time.h>

double startTime;
double runSecs;

startTime = dtime();


// Calculations

runSecs = dtime() - startTime;

// or second counter

startTime = dtime();
do
{
runSecs = dtime() - startTime;
}
while (runsecs < 1.0);





double dtime()
{
double q;

tnow = clock();
q = (double)tnow / (double)CLOCKS_PER_SEC;
return q;
}

Do you want to be "a newbie in C" till the end of your life?

Gio ahead and ask help on how to write the program MAN.

cheers

[I know you will be showing ***** at me. keep your head cool for a moment and rethink]

Tags
  General - Computers & Internet   Software   Security   Programming & Design   Facebook   Flickr   Google   MSN   MySpace
Related information
  • What is the use of Random class in java?

    A Random class generates a stream of pseudo-random numbers. To create a new random number generator, use one of the following methods: new Random() new Random(long seed) chec...

  • Sir i have an idea to design a social network i want your help to design social network, what i need to do?

    You can find step by step guide on how to create a website at website like ...

  • How to convert .jar files to .exe?

    You can convert your Java files into exe programs using two ways, but it depends on your purpose of doing so. If you want an exe launcher for your Java program, exe4j (...

  • Previewing websites in different browsers?

    Just use this ...

  • How can I collate PDF pages together.?

    You need a full version of Adobe Acrobat or Acrobat Professional. Open the PDF file you want to add the pages in. Once that PDF is open go to DOCUMENT --> INSERT PAGES and a 鈥淪elect Fi...

  • Can anyone help me with querying a Novell Tree via LDAP from .NET 1.1?

    May be you can contact a .NET expert live at website like ...

  • Dreamweaver CS3: Advanced Library Function?

    It's quite simple. Follow these steps 1. Create a new file with any name having an extension .js, (like myscript.js) 2. Cut and paste all of your code from HEAD tags of a page into this ...

  • Will learning web design on a PC be tough to transition to a Mac environment?

    there is not going to be much difference as long as you're familiar w\ those adobe programs.

    ...
  •  

    Categories--Copyright/IP Policy--Contact Webmaster