//====================================================== file = hello.c ===== //= A simple "Hello World" program with a loop for demostating processes = //= - This program used by process.c = //=========================================================================== //= Notes: = //= 1) This program outputs "Hello World" once per second for a total = //= of ten times = //=-------------------------------------------------------------------------= //= Example execution: = //= = //= Hello World - - - iteration #1 = //= Hello World - - - iteration #2 = //= Hello World - - - iteration #3 = //= Hello World - - - iteration #4 = //= Hello World - - - iteration #5 = //= Hello World - - - iteration #6 = //= Hello World - - - iteration #7 = //= Hello World - - - iteration #8 = //= Hello World - - - iteration #9 = //= Hello World - - - iteration #10 = //=-------------------------------------------------------------------------= //= Build: bcc32 hello.c, cl hello.c = //=-------------------------------------------------------------------------= //= Execute: hello = //=-------------------------------------------------------------------------= //= Author: Kenneth J. Christensen = //= University of South Florida = //= WWW: http://www.csee.usf.edu/~christen = //= Email: christen@csee.usf.edu = //=-------------------------------------------------------------------------= //= History: KJC (11/18/98) - Genesis = //=========================================================================== //----- Include files ------------------------------------------------------- #include // Needed for printf() #include // Needed for Sleep() //=========================================================================== //= Main program = //=========================================================================== void main() { int i; // Loop counter // Loop to output "Hello World" message once per second a total of ten times for (i=1; i<=10; i++) { printf(" Hello World - - - iteration #%d \n", i); Sleep(1000); } }