Question: In C + + Please, I have tried following another answer here but it still says that it's wrong. Thank you. 8 . 2 0

In C++ Please, I have tried following another answer here but it still says that it's wrong. Thank you. 8.20 LAB: Parsing dates
Complete main() to read dates from input, one date per line. Each date's format must be as follows: March 1,1990. Anty date not following
that format is inoorrect and should be ignored. Use the substrof function to parse the string and extract the date. The input ends with -1 on
line alone. Output each correct date as: 3-1-1990.
Ec If the input is:
March 1,1990
April 21995
then the output is:
3-1-1990
Use the provided GetMonthasint() function to convert a month string to an integer. If the month string is valid, an integer in the range 1 to
12 inclusive is returned, otherwise 0 is retumed.
 In C++ Please, I have tried following another answer here but

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!