Homework/HW01/MyArray.cc
void MyArray::output()
{
    // output the size
    cout << "The array of size " << size 
         << " contains the elements:" << endl;
    // then all the elements
    for (int i=0; i<size; i++)
        cout << array[i] << ' ';
    cout << endl;
}
// Output the elements of the array.
Output the elements of the array.
Output the elements of the array .
void MyArray::output()
{
    cout << "The array of size " << size 
         << " contains the elements:" << endl;
    for (int i=0; i<size; i++)
        cout << array[i] << ' ';
    cout << endl;
}
void MyArray :: output ( ) { cout << " " << size << " " << endl ; for ( int i = 0 ; i < size ; i ++ ) cout << array [ i ] << ' ' ; cout << endl ; }
Output the elements of the array.
Output the elements of the array .
// output the size // then all the elements