Need help with delimiters.

Hi guys,

I want to create a program where you enter today's date, in the following format: 02/04/2013. As well as your birth date in the following format: 27/09/1994. After doing that I want to assign the day, month and year of the present date, as well as the day, month and year of the birth date in to their own variables (for example, Day, Month, Year), and then calculate your age.

I have tried doing this with cin.get(), but this method is way too long, and I'm looking for a shorter method, but I have no idea how to do this.

I'm quite new to this, thanks in advance.
We just recently had a thread for this exact same thing:
http://www.cplusplus.com/forum/beginner/97673/#msg524325
So you're in luck :)
That answers my question, thank you very much =]
Topic archived. No new replies allowed.