// ------------------------------------------------------------------------ // A cell contains an Item* and a link. Cells are used to build lists. // A. Fischer June 13, 2000 file: cell.hpp // ------------------------------------------------------------------------ #pragma once #include #include "item.hpp" using namespace std; // ------------------------------------------------------------------------ class Cell { friend class Linear; friend ostream& operator<<( ostream& out, Cell& c); private: // ------------------------------------------------------------ Item* data; Cell* next; Cell(Item* e = NULL, Cell* p = NULL ): data(e), next(p){ } ~Cell(){ cout <<"\n Deleting Cell " <