As stated in the previous labs, there is nothing to hand in for lab exercises. There will be question on lab material in class tests. Also, you will learn the lessons presented in the lab material more easily when you perform the lab exercise.
This exercise is based on the commands you have learned in this lab
and the directory structure presented in Figure 1.
You need to be comfortable creating and moving around in directories
in a Unix environment.
If you don't organize your files, finding a particular file can
become a nightmare.
The first part of the lab exercise gives you practice with the Unix
commands you need to do this.
Assume that you get started from your home directory; that
is, when you do an ls
following is what you see:
test.txt hello.cpp cs110/ or cs130/
Please also remember: the following questions should be regarded as a continuous process; that is, the directory you end up in for question n is what you start from for question n+1.
Pretend that all of the files and directories exist.
Now, change to the directory of lab3 and inside that directory, create directories for ex1, ex2, and ex3 for practicing unix commands such as rm and rmdir. Move to your lab3 directory before you proceed with the next part of this exercise.
Consult with your lab instructor if you have a problem with any of this.
The path: pub/class/110-130/ftp/cpp The file: sampleio.cppThe purpose of the program is to demonstrate how to INPUT data from the standard input device (the keyboard) and how to OUTPUT data to the standard output device (screen).
The path: pub/class/110/ftp/cpp The file: rhyme.cppThe purpose of this program is to show you how to print out data to the standard ouput device which is the screen. The program will print out a nursery rhyme to the screen.
Monday, 19-Jan-2009 11:31:06 CST