I have made this program run, however in the book it says my functions should "accept a pointer to a c-string as its argument." Please help me if you can.
I would be hesitant about any book claiming to teach C++ that requires you to use c-style strings. I would recommend just using std::string as you have already done.
Thought so, thank you for helping. Also, LB would you care to run my program, and help me fix the problem where, if you enter a string with spaces it does not compile right.