25.8 Exercises

I l @ ve RuBoard

Exercise 25-1: In Chapter 1 we defined a histogram program that used our home-grown infinite array. Rewrite the program to use the STL.

Exercise 25-2: Write a program that produces an index for a book. The input file is a set of page numbers and index information of the form:

 <page-number>    <index entry> 

There may be more than one record for each index entry. The output should be a sorted list of index entries such as:

 alpha 10, 20, 30 beta 5, 6, 18 ..... 

Exercise 25-3: Change the cross-reference program you wrote for Exercise 20-1 to use the STL.

Exercise 25-4: Write a program that does a frequency count of each word in a document.

I l @ ve RuBoard


Practical C++ Programming
Practical C Programming, 3rd Edition
ISBN: 1565923065
EAN: 2147483647
Year: 2003
Pages: 364

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net