| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Towers of Hanoi {ansi} |
On Jun 19 09:02, 1998, George White of 2:440/4 wrote:
G'day George,
FA>>return (double) ((double) time1 - (double) time0));
GW> ...................^^^^^^^^^.........^^^^^^^^......^^
GW> I've just had a look at the Borland 3.1 RTL source, and if you remove
GW> the redundant casts and the brackets marked above, you've got their
Well you know when in doubt, cast everything but main(). :-)
GW> Bit odd really, as the two compilers I've looked at so far say clock()
GW> measures time from program start.
That's what i've always thought, but i guess it is possible that certain
systems may need the timer to be triggered.
FA>>program.. if(ran_30_days())
GW> I doubt it :-(. Certainly Borland in BC 3.1 define clock() as
GW> So unless the program is run continuously for more than 30 days it
Yes it will. :-)
ran_30_days() was to be thought of as a function comparing today with the
install date then returning a boolean, if false the nag exits clean.
Regards, Frank. Email: fadam{at}sensation.net.au.
--- Msged/386 4.30 beta 2
* Origin: The ticking point, Melbourne, Australia. (3:635/728.21{at}fidonet)SEEN-BY: 622/419 633/267 270 635/506 728 670/218 @PATH: 635/728 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.