home *** CD-ROM | disk | FTP | other *** search
- #ifndef __ARRAY_H
- #define __ARRAY_H
-
- // ╔════════════════════════════════════════════════╗
- // ║ array.h, array.cpp ║
- // ╟────────────────────────────────────────────────╢
- // ║ mixed-type array ║
- // ╟────────────────────────────────────────────────╢
- // ║ Written by Gus Smedstad ║
- // ╟────────────────────────────────────────────────╢
- // ║ Copyright 1990-91 NoGate Consulting ║
- // ╚════════════════════════════════════════════════╝
- #ifndef __CONTAIN_H
- #include "contain.h"
- #endif
-
- class array : public container {
- protected:
- int t_size;
- containable **data;
- public:
- array(int);
- virtual ~array();
- void put(containable *);
- int size() { return t_size; };
- containable *& operator [] (int arg) { return data[arg]; };
- };
-
- #endif