The lab workflow will be almost identical each time. Here's a walkthrough of a hypothetical lab assignment.
First, create and enter a subdirectory for the lab, using the mkdir
command:
mkdir labX
cd labX
Create your Makefile
.
Write your program and save it as labX.c
. Be sure to include your name and
the project number in the top comment block, e.g.:
/*
* Project 0 by Hans Fugal
* CS 467 Summer II 2006
*/
Compile your program by typing make
. If there are errors, fix them and try
again.
Run your program by typing ./labX
. If it doesn't work properly, debug it,
recompile it, and try again.
When you're ready to submit, execute the following command:
~hfugal/submit labX
Check your email for the automatic reply.
Celebrate!