3 struct variables excluding '/'
im following robert lafores 'OOP programming in c++' and im having trouble with an exercise (no its not for school).
its asking for the user to enter a date in "mm/dd/yy" format and for the struct variables to be of type int. i need to store the month in date1.month, day in date1.day, and year in date1.year.
ive tried using getche() but all my efforts leave me a little frustrated. how do i ignore the '/' yet store the 2 digits before that in one variable? im not asking someone to do this exercise for me, but a push in the right direction would be appreciated. thanks in advance.