My question how I would check for invalid symbols in a string input from the user.
The way I have my code set up, I receive an input that includes commas and spaces(ex. dog, racecar, 23heijs) and a function parses the input into separate elements and places them into a vector. My issue is how to catch exceptions such as (&, *, #, etc.) and excludes characters, commas, spaces, and numbers(i don't want to lose my inputs). After passing an acceptable string, it will be parsed into a vector and another function will be implemented to mess around with the vector, etc. Below is my code: