#ifndef EBOOK_H #define EBOOK_H #include class Ebook { public: Ebook(std::string const& text, int char_per_line = 80, int line_per_page = 40); void set_page_size(int char_per_l, int line_per_p); bool at_end() const; std::string next_page(); private: std::string text; std::string::size_type next_page_start; int char_per_line; int line_per_page; }; #endif