//----------------------------------------------------------------------------
#ifndef SMARTINTARRAYCLASS_H
#define SMARTINTARRAYCLASS_H
//----------------------------------------------------------------------------
#include "boolean.h"

const int MAX_INTEGERS = 20;
typedef int integer_array[MAX_INTEGERS];
//----------------------------------------------------------------------------
class smart_int_array {

public:

//----Default constructor (all that is needed)
smart_int_array(void);

//----Empty the array
void Initialize(void);

//----Add another item to the array if there is space
boolean AddItem(int Item);

//----Get a specified item if it has been stored
boolean GetItem(int ItemNumber, int& Item);

//----Get the number of items stored
int NumberOfItems(void);

//----Total all the items stored
int Total(void);

//----Average all the items stored
int Average(void);

private:

int TheNumberOfItems;
integer_array TheItems;

};
//----------------------------------------------------------------------------
#endif
//----------------------------------------------------------------------------
