Due Monday, 1999/08/30
Note: Some of the following will be completed in Lab on Friday, 8/27.
On the Macintosh Lab systems you should:
#include <stdio.h>
main()
{
printf( "Hello, world.\n" ) ;
}
cc -o hello hello.c
This command instructs the C compiler ("cc") to create an output file ("-o") named "hello" by reading the program file "hello.c".
If all goes well, you should simply get another "$" command prompt. If something isn't exactly right with the program, you may get a number of error messages. If you get error messages, read them carefully, and use "pico hello.c" to go back and see if you can change your program.
You should see the computer respond with a message "Hello, World!". Congratulations. You've run your first program../hello
Copyright © 1999, Ray Ontko (rayo@ontko.com).