I was wondering how you would assign multiple variables from a single line of user input if it contained symbols. Such as, if the user input was 5-25-1995, is it possible to assign 5, 25, and 1995 to different variables and ignore the "-"'s? I have been trying to use cin.ignore(), but haven't had any luck as of yet.
Thanks.
Short version:
user inputs "3-24-1995"
desired outcome
int month is 3, int day is 24, int year is 25,