/* * Simple string store file: ssstore.hpp * * Created on: Oct 3, 2009 * Author: Michael Fischer */ #pragma once #include "tools.hpp" #define MAXLETS 10000 // maximum number of characters in store // ========================================================================== class StringStore { private: char* letters; // String storage area. int remain; // Space remaining in current Pool. int next; // Subscript of next available slot. public: StringStore(int sz=MAXLETS): letters(new char[sz]), remain(sz), next(0) {} ~StringStore(){ delete [] letters; } const char* put( const char* s, int ln ); };