CSE 222 Closed Lab #6
Please follow these steps in closed lab:
-
Select a partner to work with on the closed lab exercise and decide whose
account to use for it. After you have completed the closed lab exercise,
the person whose account has been used may e-mail to his/her partner the
file(s) containing the solution that was devised by the partnership.
-
Copy the initial closed lab #6 files to your own working directory and get
into that directory:
cp -R /class/sce/now/222/closed-labs/closed-lab06/Closed_Lab06/ .
cd Closed_Lab06
- Look through the file Tree_Test.cpp, which is a test
driver for the Put_Tree and Get_Tree operations from the homework
assignment, just to get an idea of the overall structure and to see
what main does.
- Fill in the body of the Put_Tree operation, which you should have
done as the homework. Then execute the "Build Project" command to
compile the file.
- Fill in the body of the Get_Tree operation, which you should have
done as the homework. Then execute the "Build Project" command to
compile the file.
- Run the test driver using (at least) the following test
cases:
- ()
- a(()())extra stuff
- a(b(()())c(()()))apple
- a(()b(()()))core
- a(()b(c(()())()))
-
Let your instructor know when you are satisfied all operations work satisfactorily,
in order to get credit for this closed lab.