CSE 221 Closed Lab 2 Instructions


Table of Contents


1. Objectives

To implement the global operation Concatenate in the main program Concatenate_Test_Driver.cpp.


2. Set Up

Two students should work together at ONE workstation.

  1. Login.


  2. In an xterm window, create a new directory (folder) for this closed lab by typing the "make directory" command:
         mkdir closed-lab02
  3. Change or move to the new directory (folder) for this closed lab by typing the "change directory" command:
         cd closed-lab02
  4. Copy the catalog for this closed lab by typing the "copy" command:
        cp -R /class/sce/now/221/closed-labs/catalogs/closed-lab02/*  . 
    NOTE: The period . is part of the command. It denotes the current directory (folder).

  5. To see what was copied, type the "list" command:
         ls

3. Implement Global Operation

  1. Open the file Concatenate_Test_Driver.cpp in xemacs by typing the command:
         xemacs Concatenate_Test_Driver.cpp &
  2. Using xemacs, fill in the procedure body for Concatenate in the file Concatenate_Test_Driver.cpp.

4. Compile and Test

Do a Build Project for Concatenate_Test_Driver.cpp. Once all syntax errors are corrected, run the test driver on several test values.


5. Proctor Check-off

When you are satisfied that your implementation is working correctly, raise your hand and one of the proctors will come check it. Then you are finished with the closed lab.