473,396 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Turbo c

Im havin' a problem in turbo c that i just cant solve..
Here's the prob..
i am going to create a timer...
sample run...
Enter hour:1 hr
Enter minutes:1 minute
Enter seconds: 50 seconds

then it will run until the time reaches zero...
can anybody give me a program for this??
pls....

Apr 24 '07 #1
2 3539
On 24 Apr, 07:05, phillip <lionheart_...@yahoo.comwrote:
Im havin' a problem in turbo c that i just cant solve..
Here's the prob..
i am going to create a timer...
sample run...
Enter hour:1 hr
Enter minutes:1 minute
Enter seconds: 50 seconds

then it will run until the time reaches zero...
can anybody give me a program for this??
pls....
this can't be done in standard C you need to call a platform
specific delay function. Try delay() or sleep().

Please use standard English it makes you posts easier to read.
--
Nick Keighley

Apr 24 '07 #2
phillip said:
Im havin' a problem in turbo c that i just cant solve..
Here's the prob..
i am going to create a timer...
sample run...
Enter hour:1 hr
Enter minutes:1 minute
Enter seconds: 50 seconds

then it will run until the time reaches zero...
can anybody give me a program for this??
pls....
Look up time(), mktime(), and difftime(). It's not difficult, although
of course it will be a busy wait. If you want lazy wait, ask in an
MS-DOS newsgroup such as comp.os.msdos.programmer

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Apr 24 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Developwebsites | last post by:
I am taking advanced C++ at college and we use Borland Turbo C++ 4.5 compiler. How different is Turbo C++ from the standard C++? I know Borland used to call their versions of C++ and Pascal Turbo,...
7
by: marek | last post by:
Dear colleagues, for one project, I need to link Turbo (or Borland) Pascal with (Turbo) C code. I would strongly like to avoid rewriting (my) C routines to Pascal (other part of project is under...
3
by: riku | last post by:
Does any1 know a site where i can download Turbo Pascal for free and is not a trial version. If you do, can u please tell me?
0
by: bitong | last post by:
I was just wondering when I installed a Turbo C in my computer..When I'm about to run my work it says there unable to input turbo.c..What does it mean? I already consolidated all the turbo C files in...
1
by: anonymous | last post by:
i wrote a graphical program in turbo c 3.0 ,it runs safe on turbo 3.0,(however i'm using xp) so when i wanted to run it for my teacher,both turbo c & program crashed; so i decided to compile it in...
16
by: scott | last post by:
I am looking for a copy of Turbo C 1.5 from 1987 for some historical research I'm doing into computing from that time period.
0
by: anonymous | last post by:
i wrote a graphical program in turbo c 3.0 ,it runs safe on turbo 3.0,(however i'm using xp) so when i wanted to run it for my teacher,both turbo c & program crashed; so i decided to compile it in...
4
by: Herhor | last post by:
Recently Borland has been hyping its new line of RADs called "Turbo" as an ultimate tool for beginning programmers. Are these products really match for Microsoft's "Visual Studio"?
3
by: postrishi | last post by:
Hello Everybody , I am a new user. I am currently using Turbo C++ 3.0 editor in my engg.Can you tell me or post me a ebook on turbo c++ and NOT on c or C++.MInd it I want a book on TURBO C++ editor...
4
by: Abe Kobei | last post by:
Hello. Is there an official website to obtain Turbo C 1.0? I know that I can download Turbo C 2.0 from Borland, but I want a smaller version, because I expect that older is smaller. I want...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.