// fa2.cpp - a dynamic array of float

#include "fa2.h"
#include <assert.h>

// other float_array member function definitions ...

float &float_array::operator[](size_t i) const
    {
    assert(i < len);
    return array[i];
    }

----------

