CS-240
Lab 9
Purpose:
Introduction to the STL Container classes
Reading:
Nyhoff, Chapter 9
Due Date:
Have completed lab uploaded by your
next lab session, bring hard copy to lab (either Tues. April 10 or
Thurs. April 12)
Motivation:
The C++ Standard Template Library is a
powerful extension of the C++ language consisting of standardized,
off-the-shelf and generic container class templates, iterators, and
algorithm (i.e., function) templates. Using the STL facilities
saves development time (design, coding, and testing), especially when
working on large-scale applications and projects. However,
injudicious use of the STL can cause programs to have slower running
times due to the excruciatingly complete (i.e., bloated) implementation
of its components.
Assignment:
Modify your solution to Project 2
(Expression Evaluator) by
replacing your List, Queue, and Stack classes with the STL
Queue, Stack and List classes.
Last updated 03/25/2007 - RMW