CSCI 146: Lab 4 Materials
The main goal of Lab 4 (to be held on September 15 and 16, 1997)
is to carry out the implementation of the String class described in Chapter 4 of
the text. This implementation uses a dynamic array.
A secondary goal is to learn some features of the debugging facilities of the
Visual Studio Program Development Environment.
The pre-lab activity consists of carrying out exercises 11-25 in Chapter 4
of the text. This homework must be turned in at the beginning of the lab.
The following activities will be carried out in the lab:
- Download String header file, mystring.h
from the world-wide web.
- Download partial String implementation file,
mystring.cxx
from the world-wide web.
- Download demonstration program,
str_demo.cxx from the world-wide web.
- Review the three files, create a workspace and project, compile and
execute.
- Design, code, and test the implementation of the String class described in
mystring.h. This will be done on a member-function by member-function basis,
with the lab instructor presenting a correct implementation of each member
function after the students have tried to carry it out on their own.
- Implement independently a few more member functions and turn in the
work.