/*********************************************************************
example 3 - driver.cpp
    combining put() and get() with access() using return by reference
*********************************************************************/
#include <iostream>
using namespace std;

#include "safearray.h"

void main() {
    safearray list;
    for (int i = 0; i < maxsize; i++)
        list.access(i) = i*10;

    for (int j = 0; j < maxsize; j++)
        cout << "Element " << j << " is " << list.access(j) << endl;
}