Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Looking for CLOCK in C programming

2 views
Skip to first unread message

Norlela Saihen

unread,
Mar 9, 2000, 3:00:00 AM3/9/00
to
i am looking for a programming CLOCK in C programming format......if any
one have it, pls be pleasure to send me a copy.......thanks :)
pls reply to che...@hotmail.com


Paul Lutus

unread,
Mar 9, 2000, 3:00:00 AM3/9/00
to
Do not ask for source code in a programming instruction newsgroup.

Do not ask for e-mail from a public newsgroup.

Always read the FAQ, welcome message, and the newsgroup itself before
posting.

--

Paul Lutus
www.arachnoid.com


Norlela Saihen <use...@siswa.utm.my> wrote in message
news:38C7098E...@siswa.utm.my...

Fei Li

unread,
Mar 9, 2000, 3:00:00 AM3/9/00
to

Norlela Saihen <use...@siswa.utm.my> wrote in message
news:38C7098E...@siswa.utm.my...
> i am looking for a programming CLOCK in C programming format......if any
> one have it, pls be pleasure to send me a copy.......thanks :)
> pls reply to che...@hotmail.com
>
Sorry for my ignorance, but what is a "programming clock"?
Is it a program that displays a clock? Well, if you use unix, the
following code "in C++ format" will do it:

#include <cstdlib>
using namespace std;
int main() {
system("xclock");
return 0;
}

You can also convert the program to display a
calculator or a calender, etc, by changing just one
string. Isn't that nice? :-)


Jim Cobban

unread,
Mar 9, 2000, 3:00:00 AM3/9/00
to
Norlela Saihen wrote:

> i am looking for a programming CLOCK in C programming format......if any
> one have it, pls be pleasure to send me a copy.......thanks :)
> pls reply to che...@hotmail.com

It is considered bad Netiquette to demand an E-mail reply to a question in a
newsgroup. If your question is of such generality that it requires our time
to read your question, then you should stick around long enough to read our
replies.

In C look in the header <time.h> in C++ look in the header <ctime>. They
both contain functions which can be used to implement a clock on any system.

--
Jim Cobban jco...@magma.ca
34 Palomino Dr.
Kanata, ON, CANADA
K2M 1M1
+1-613-592-9438

thesnaguy.vcf
0 new messages