The STringList Class

The STringList Class

The STringList class represents a list of character strings. Written by Fritz Barnes for the Data Structures class, it includes the routines that construct and manage the lists in C++. This class was generated to simplify the use of strings in C++ programs, and as an example of how linked lists are built in C++.

To Obtain the Class

To obtain the STringList class you need both the include file STringList.h, the include file STringListElem.h and the source code file STringList.C.

The user must also include the STring class for the lists to operate correctly.

To test the STringList class, a sample program and Makefile are available.

Notice the capitalization of the first two letters of the class. This was done to avoid name conflicts with libraries and other classes that are currently utilized in various subsystems (e.g. X, gl) of the workstation environment that we utilize.

This class was generated as an example of linked-list design for the Data Structures class at UC Davis. It has worked in a limited set of situations. You may use it ``as is'' or can modify it. If you find errors, and can correct them, please send mail to the address below, as we would also like to know about them.

This document maintained by Ken Joy.
Comments to the author : joy@cs.ucdavis.edu

All contents copyright (c) 1998
Computer Science Department, University of California, Davis
All rights reserved.



Ken Joy
Wed Jan 7 14:59:12 PST 1998