Getting Started
Log onto a computer science server making sure to change the port number.
Follow these instructions to get your files ready to start lab.
- Use
wget
to download the file at http://cs.longwood.edu/courses/cmsc162/f18/files/lab2.tgz
- Uncompress the lab2.tgz file by using
tar -xvzf lab2.tgz
- Use
ls
to see that there is a new directory called lab2
- Use
cd lab2
to change directory to the lab2 directory
The Problem
For each commented line of code you will describe what happens when the line is uncommented and the source code is compiled. If there is a syntax error you need to explain the error and can comment out the line again. ( I KNOW what the compiler tells me, EXPLAIN what the problem is) If there is no compile time error explain what each line does. If there is a run time error explain the error and then comment the line out. You may put your answers in comments in
lab2.cpp.
Handin
When you are done you need to hand in your lab. The easiest way is to type make handin
.
If you have changed file names or directory names you will need to change to the
directory which contains the directory you wish to hand in. We will use
the handin cmsc162 assignment directory
command.
In this case you will type: handin cmsc162 lab2 lab2
You lab is due at 11:59pm Sept. 4th 2018.