CS 301 - Data Structures and Algorithms I - Spring 2003
Homework 1


Loyola College > Department of Computer Science > CS 301 > Homework > Homework 1

Due

Wednesday, January 29th Friday, January 31st at the beginning of class

Problem 1: Write a C++ program that parses input that looks like

01/21/2003 Virginia Tech 100 Virginia 80
01/24/2003 Duke 75 Maryland 90
and outputs just the team names found in the input. For the above input the output should be
Virginia Tech
Virginia
Duke
Maryland
There may be any number of lines in the input but you may assume that the format is the same as that shown above. Note that some team names contain more than one word. If a team appears more than once in the input it should appear more than once in the output.

Submissions should be on paper but you are encouraged to work on a computer so you can test your answer.