uselist

uselist - /* @file uselist.cpp @author William Duncan @date...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
/** @file uselist.cpp @author William Duncan @date 2005-10-01 Description: sample client file to test your sorted list ADT Course: CS1254.02 Logon ID: cs1254xx Lab #: 5 Instructor: William Duncan */ #include <iostream> #include <string> #include "listtools.h" #include "listtools.cpp" #include "list.cpp" #include "list.h" using namespace std; int main() { /**==> After templatization, replace the declaration of the student list with this declaration. List<string> students; */ List students; students.insert("Solano, Wanda"); students.insert("Grissel, Jeremy"); students.insert("Hebert, Matthew"); students.insert("Roussel, Kathryn"); students.insert("Forrest, Angelle"); students.insert("Favorite, Maghan"); students.insert("Ray, Alex"); students.insert("Davidson, Dan"); /* remove the value in second place */ /**==> After templatization, replace the declaration of the student list with this declaration. Iterator<string> pos;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

uselist - /* @file uselist.cpp @author William Duncan @date...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online