< Prev page    Contents    Next page >

(Routines part 2: Comparisons and loops)

Some routines should do the exact same thing every time they are called. Cube() is a perfect example of this. However, imagine a program that did the same thing every single time. It wouldn't be very interesting or interactive. That is why programming languages include ways to allow the program to make decisions and act differently based on those decisions. This whole subject is generally referred to as program logic. For example, a billing program would send out an invoice only if the order is unpaid. A utility program might delete only those files that haven't been used in over 6 months. And so on.

End of guide as of 1/19/98. Check back in a day or two for more.

< Prev page    Contents    Next page >


This page hosted by Get your own Free Home Page

And yes, folks, it's really free. I'm too cheap to pay for this.