CS 225 Program 5

CS 225 Fall 2000 Assignment 5 Points: 50 Due Date: October 29, 1999

Introduction

This is much the same as the problem in assignment 4. Now, you will make a book class rather than a struct. It will have the same data fields.
 
 
title a character array of 32 characters private
pages an integer private
cost a float  private
There will be at least the following public methods:
set and get methods for each data member
a print method to print this book
a constructor and destructor

Again you will have to make an array of these. You will have to use the methods on the class to get data into them. You will have to write a loop that prints all the books using the print method.

Hand in the listing. Be sure to explain your method in the comments.