// FILE: DoRepDrv.cpp // DRIVER FOR FUNCTION "do_replace" #include #include "apstring.h" #include "DoReplac.cpp" // Functions Used... void do_replace (apstring&, // INOUT: string in which replacement occurs bool&); // OUT: indicates success or failure // Driver (Not included in the text.) int main () { //Local Data... apstring test_string; bool success; //Get the original string cout << "Enter a string > " ; getline (cin, test_string); //Do the character replacement do_replace(test_string, success); // Print the new string cout << "The new string is " << test_string; return 0; }