Miscellaneous > Programming & Networking

32 hour clock

(1/9) > >>

Master of Reality:
would it be hard to make a 32 hour clock. I know little C++ (i can write the hello world program!), but i want to write a program for a 32 hour clock. I am by no means a programmer yet, which would be the best language to use for a clock, C++ i would assume?
I would go and learn the bare minimum to build a 32 hour clock if i new that it wasnt extremely hard. Now not knowing anything about time or programming i dont know if it would be extremely hard. COuld someone enlighten me?

[ August 23, 2002: Message edited by: Master of Reality / Bob ]

[ August 23, 2002: Message edited by: Master of Reality / Bob ]

voidmain:

--- Code: ---
--- End code ---

Here's a 32 hour clock I just whipped up.  It would probably have a considerable amount of drift though so if accuracy is what you need, don't use this code.

Master of Reality:
meh. I need something that vaguely follows 32 hour time. Now called Bob-time.
I will know how much drift it has because every 4th day of bob-time starts at the same time as one of your 24 hour days.

Hmmmmmm, easy. I think i am gettin the hang of some of this programmin stuff after reading lots o stuff over the past few weeks.

[ August 23, 2002: Message edited by: Master of Reality / Bob ]

Master of Reality:
uhh...

--- Code: ---
--- End code ---

voidmain:
Uh, try "gcc clock.c".  It's C not C++.

Navigation

[0] Message Index

[#] Next page

Go to full version