// File: PascalIntArray.h // // Interface of Pascal-like arrays // derived from vector #ifndef PASCALINTARRAY_H #define PASCALINTARRAY_H #include using namespace std ; class PascalIntArray : public vector { public: // Constructors PascalIntArray() ; PascalIntArray(unsigned int n) ; PascalIntArray(const PascalIntArray& A) ; // Destructor ~PascalIntArray() ; // Assignment PascalIntArray& operator=(const PascalIntArray& rhs) ; // Redefine [] Operator int& operator[](unsigned int i) ; // New member function void bubblesort() ; } ; #endif