PDA

View Full Version : Making An Executable



Unregistered
07-07-2002, 10:46 AM
I didn't know which board to ask this question on. I am very new and have only had a basic computer class and just trying to learn my first language. When you make an executable, is it going to operate at the same speed on your machine as someone else's? If not, then how do you judge how long to make your pauses in your program if someone else is going to use it also? thnks

Salem
07-07-2002, 11:22 AM
> is it going to operate at the same speed on your machine as someone else's?
Not unless it's the same processor and processor speed as yours

> then how do you judge how long to make your pauses in your program
Things like

sleep( 1 );

are more or less independent of processor speed.

But functions like sleep() are implementation specific, it may be called something else (say Sleep() or delay() ) in your compiler

Unregistered
07-07-2002, 11:28 AM
thank you so much