sword in the stone   Hayne of Tintagel
Teaching  /  McGill C & C++  /  Examples  /  Array Class

Array Class

A C++ class 'Array' representing an array of int's (taken from chapter 8 of Deitel & Deitel): An extension of the Array class to add 'sum' & 'average' methods: An extension of the Array2 class to allow indices to start at any value (instead of 0): A main() function which illustrates the use of the above classes: