#ifndef __WORD_PROCESSOR__ #define __WORD_PROCESSOR__ #include "format.h" class wordProcessor { private: int width; public: wordProcessor() { width = 20; } void selectFormatOption() { format* txt; txt = new LeftJustify(width); txt->output(); delete txt; std::cout << "==============================" << std::endl; txt = new RightJustify(width); txt->output(); delete txt; std::cout << "==============================" << std::endl; txt = new CenterJustify(width); txt->output(); delete txt; } }; #endif