home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / m / mar93.zip / 1103110A < prev    next >
Text File  |  1993-01-08  |  393b  |  19 lines

  1. // fv1.cpp - a dynamic vector of float (with a possibly
  2. // non-zero low-bound) using a subscripting object
  3.  
  4. #include "fv1.h"
  5. #include <assert.h>
  6.  
  7. float float_vector::operator[](int i) const
  8.     {
  9.     assert(i >= low());
  10.     return float_array::operator[](i - low());
  11.     }
  12.  
  13. fa_index float_vector::operator[](int i)
  14.     {
  15.     assert(i >= low());
  16.     return float_array::operator[](i - low());
  17.     }
  18.  
  19.