// CSE143 Su01 Homework 2 Sample Solution // hw2sol.cpp - main program // SRB 6/20 #include using namespace std; #include "wordpro.h" #include "stringUtil.h" void printMenu() { cout << "Welcome to the WordPro2000, please select one of the following options :"<>selection; switch(selection) { case(1): theWordPro.startNewDocument(); break; case(2): theWordPro.continueDocument(); break; case(3): theWordPro.spellCheck(); break; case(4): cout<<"Please enter the text to search for: "; getline(cin,selectionString); theWordPro.findWord(selectionString); break; case(5): quit = true; break; } } while(!quit); return 0; }