#ifndef ___WORD_PRO_HPP___ #define ___WORD_PRO_HPP___ #include "format.h" class wordProcessor { private: int width; public: wordProcessor() { width = 20; } wordProcessor(int w) { width = w; } 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; std::cout << "==========================" << std::endl; } }; #endif