Ok, basically I have a user inputted string named ssn, for entering social security numbers. I have the user input it with a getline function, but after that I need to test this string to make sure a 9 digit number was entered into it. How would I check this string to make sure all of the characters are numbers (0-9)?
None of the string functions I've used seem to work with this, and tend to have problems because the string values are characters.
Any help would be much appreciated, I honestly can't find help for this in either of my books.
Silverwolf