This preview shows page 1. Sign up to view the full content.
Unformatted text preview: Characters, integers which are larger than int can hold, and files which contain more than 9 integers will cause exceptions. The file not found exception is handled as in the handout. The integers are read in sequentially and placed into the correct position in the array using a member function of class ac. If less than 9 ints are present in the file, the program still operates correctly. The array is also printed every time a new integer is added to it. At the end, the mean and median are also printed in a similar fashion....
View Full Document
- Spring '08