At Fixya.com, our trusted experts are meticulously vetted and possess extensive experience in their respective fields. Backed by a community of knowledgeable professionals, our platform ensures that the solutions provided are thoroughly researched and validated.
The following code shows the mainline of a program using the Date class-
int main() { Date d1; d1.printStandard(); d1.printAmerican();
cout< Date d2 (26, 10, 1990); d2.printStandard(); d2.printAmerican();
system("pause");
return 0; }
The output from this program is as follows-
0/0/0 0/0/0
26/10/1990 10/26/1990
You are about to write the header file and the source file for the class Date incorporating the appropriate private data members and a default constructor, a parameterised constructor, the printStandard method and the printAmerican method.
For this question I am to use visual studio 2005 using the c++ language. What code should I have in the header file and what code in the source file.
- If you need clarification, ask it in the comment box above.
- Better answers use proper spelling and grammar.
- Provide details, support with references or personal experience.
Tell us some more! Your answer needs to include more details to help people.You can't post answers that contain an email address.Please enter a valid email address.The email address entered is already associated to an account.Login to postPlease use English characters only.
Tip: The max point reward for answering a question is 15.
×