I'm writing code that involves people putting in dates... They must use month/day format (2 digits each... 02/01)... My output is suppose to determine what Zodiac sign they fall under.
I know I'm doing it the long way with if/else if statements, but I don't know another way.
My problem is that the user MUST according to the assignment enter the '/' between numbers. my program wants to divide... I've tried to used
, but that doesn't seem work... I need to be able to grab the first 2 digits and last 2 into a variable. IsCode:cin.ignore(/)the answer? If so, what do I put in paren to grab those numbers?Code:cin.get