Mason Reeves wrote: I can't tell why I am getting a runtime exception when I run the program.
Hi,
When you run the program you shouldn't get any exception.
You should get exception, when you try to input date, because probably you're trying to add date in a format for ex. 30/04/1975, but
line above expects int type and character "/" is not of that type.
Lines 10,12 are not necessary, as you're not using them and not really clear the purpose of it.
What you could do, just try to read the date as a
string, and use the function split, so finally you would get the date in the array (withoug "/" symbols). After that need to thing, what would you like to do next.