-
Login to any computer and start the X Window system by typing startx at the Linux prompt..
-
Start the netscape browser by typing netscape& (notice the ampersand)
-
Visit the home page for the class: www.cs.nmsu.edu/~rth/cs/cs177
-
Click on the link for lab 1. You should then see this page.
-
Hold down the shift key and click on this link to the source code.
-
Save the source code as a file, called lab1.cc
-
Edit lab1.cc to make the comment block contain your name, save the file
-
Compile the program text by typing: g++ lab1.cc
-
Run the program by typing a.out to view the output
-
Run the program with redirected output by typing:
a.out > lab1.out, where lab1.out is a name of a new file
-
Use the editor to insert the output file into the program text, at the end of the file.
Save this file as lab1.submit
-
Print the source code and output by: lpr lab1.submit
-
Hand the printed source code and output to me
-
Go home happy!!