For this problem, you will be filling in the blanks to implement functions for class wiedDato The header for the Date St
Posted: Sun May 15, 2022 9:59 am
For this problem, you will be filling in the blanks to implement functions for class wiedDato The header for the Date Stamos class is hown below Date Stamps stores a list of Date structs in a 10 dynamic ray We use a pointer named "starp to point to the dynamic sy Ench index of me dynamic contains a Date. The Date struct contains day, month and your as int type member les represented in tegens The following is the header struct Date in anth: : che Dutem public well Constructor Date Stamps Constructor Date Stamp (int Samp) w Overload for bool operation (conut Datamp other Destructor -DateStamps / Sets the date at a particular index void setDate(int indek, int day, int month, int year) // Prints the date at a particular index void printDate(int index) vate Date stamps: // Pointer to ID dynamic array of Date struct int numDates The number of Date elements stored in stamp Jement the following functions. Be sure to read the specifications for each function carefully CAN Anciers to sdoe all answers
tam Di Thero Dawed in > Implement the following functions. Be sure to read the specifications for each function carefully • The constructor should use the private pintar "atan" to initialle 10 dynais array on Date type elemente • "atape" should be initialled to hold nun tanpe elueant of Date type • Kach Date in the ID dynamie seray should be initialized to hold the date 1/1/1500 day 1: 1. s 1900 • The private variable numDates" whould be initialized to the wonder of Date elemento in tanpa ./ Datestanpenatesampaint bundtampa) stampa for (int 1-01 - 1 month - 1 1900: numDates- • The overloaded ww operator should read through all elements in stamps or this instance and other • It will compare each Date in "other" with the corresponding Date in this instance - If any Date does not match between the current instance and other, then operatore should return false . If all of the Date structs in the current instance stamps are identical to • the corresponding Date structs in other's stampe, then the function should return true •/ bool DateStampa :: operators (const Datestampas other) Save AR Flick Save and Submit to see and submit, Chick Save All Answers to see all answers
The averloaded operator whould read through all elemente in stamp to the trace and the It will compare each that in other with the corresponding Date in this TAROR • If any Date does not match between the current instance and other, then aparato bould ratus tals ..ll of the Date structs in the current instance stampe are identical to • the corresponding Date structs in other than the function should return true -/ bool Datesta per operator conat DataStampas other for (int i=0 1 day other stampe (1).day 11 stamps111 -year other year) return return * The destructor for Datestampe should delete the 10 dynamic array atampe in the current instance DateStamps: -DateStampa () Save All Click Save and Submit to save and submit. Click Save All Answers to sane alanes MacBook Pro % & 7 8
tam Di Thero Dawed in > Implement the following functions. Be sure to read the specifications for each function carefully • The constructor should use the private pintar "atan" to initialle 10 dynais array on Date type elemente • "atape" should be initialled to hold nun tanpe elueant of Date type • Kach Date in the ID dynamie seray should be initialized to hold the date 1/1/1500 day 1: 1. s 1900 • The private variable numDates" whould be initialized to the wonder of Date elemento in tanpa ./ Datestanpenatesampaint bundtampa) stampa for (int 1-01 - 1 month - 1 1900: numDates- • The overloaded ww operator should read through all elements in stamps or this instance and other • It will compare each Date in "other" with the corresponding Date in this instance - If any Date does not match between the current instance and other, then operatore should return false . If all of the Date structs in the current instance stamps are identical to • the corresponding Date structs in other's stampe, then the function should return true •/ bool DateStampa :: operators (const Datestampas other) Save AR Flick Save and Submit to see and submit, Chick Save All Answers to see all answers
The averloaded operator whould read through all elemente in stamp to the trace and the It will compare each that in other with the corresponding Date in this TAROR • If any Date does not match between the current instance and other, then aparato bould ratus tals ..ll of the Date structs in the current instance stampe are identical to • the corresponding Date structs in other than the function should return true -/ bool Datesta per operator conat DataStampas other for (int i=0 1 day other stampe (1).day 11 stamps111 -year other year) return return * The destructor for Datestampe should delete the 10 dynamic array atampe in the current instance DateStamps: -DateStampa () Save All Click Save and Submit to save and submit. Click Save All Answers to sane alanes MacBook Pro % & 7 8