I am writing a program that uses some simple string manipulation functions to process names. All is working fine, except when I need to use the erase function. My understanding is that the format is as follows:
myString.erase(position to start erasing, # of positions to erase)
However, when I run my code (attached), it processes all the names correctly except when i need to use the erase function to trim the string. Not sure what I am doing wrong, or if this is enough code to determine error.
Thanks for your help.