/********************************************************************* example 5 - driver.cpp replace access() with operator[] *********************************************************************/ #include <iostream> using namespace std; #include "safearray.h" void main() { safearray list; for (int i = 0; i < maxsize; i++) list[i] = i*10; for (int j = 0; j < maxsize; j++) cout << "Element " << j << " is " << list[j] << endl; }