const int MAX_LINE = 20;<br /> const int MAX_CHAR = 100;<br /> const int MAX_PAGES = 1000;<br /> class Page {<br /> char aPage[MAX_LINE][MAX_CHAR];<br /> public:<br /> void print();<br /> void edit();<br /> void edit_line(int i);<br /> void delete_line(int i);<br /> };<br /> typedef Page * PagePtr;<br /> class Editor {<br /> PagePtr *pages;<br /> int cur;<br /> int total;<br /> public:<br /> Editor();<br /> void show_commands();<br /> void display_cur_page();<br /> void next();<br /> void prev();<br /> void edit();<br /> };
Page
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)