/*********************************************************************
example 9 - driver.cpp
    using operator[] instead of access()
*********************************************************************/
#include <iostream>
using namespace std;

#include "safearray.h"

void main() {
    safearray list;

    for (int i = 0; i < list.maxsize; i++)
        list[i] = i*10;

    for (int j = 0; j < safearray::maxsize; j++)
        cout << "Element " << j << " is " << list[j] << endl;
}