home *** CD-ROM | disk | FTP | other *** search
/ Resource for Source: C/C++ / Resource for Source - C-C++.iso / codelib9 / v_11_05 / 1105082c < prev    next >
Encoding:
Text File  |  1995-11-01  |  447 b   |  23 lines

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