// Executive.cpp #include #include #include "makePage.h" using namespace std; int main(int argc, char* argv[]) { if(argc == 1) { cout << "\n Please enter on command line the name of file to create\n\n"; return 1; } ofstream out(argv[1]); if(!out.good()) { cout << "\n can't open file " << argv[1] << "\n\n"; return 1; } makePage mp("This page was created by Executive"); mp.addParagraph("Its kind of ugly. But with some work it will get better"); out << (mp.buildPage()).c_str(); out.close(); cout << "\n Page built and placed in file " << argv[1] << "\n\n"; }