Microsoft Visual Studio 2005 Standard Edition for PC Logo

Related Topics:

Posted on Mar 18, 2009
Answered by a Fixya Expert

Trustworthy Expert Solutions

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.

View Our Top Experts

Programming c++ visual studio 2005 question?

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.

1 Answer

Anonymous

Level 2:

An expert who has achieved level 2 by getting 100 points

MVP:

An expert that got 5 achievements.

Governor:

An expert whose answer got voted for 20 times.

Hot-Shot:

An expert who has answered 20 questions.

  • Expert 118 Answers
  • Posted on Mar 23, 2009
Anonymous
Expert
Level 2:

An expert who has achieved level 2 by getting 100 points

MVP:

An expert that got 5 achievements.

Governor:

An expert whose answer got voted for 20 times.

Hot-Shot:

An expert who has answered 20 questions.

Joined: Mar 22, 2009
Answers
118
Questions
3
Helped
37621
Points
257

Pl. verify the main header do u hv mentioned eg. stdio.h for main i/p & o/p header.

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

123 views

Ask a Question

Usually answered in minutes!

Top Microsoft Computers & Internet Experts

Sudeep Chatterjee
Sudeep Chatterjee

Level 3 Expert

3269 Answers

Grand Canyon Tech
Grand Canyon Tech

Level 3 Expert

3869 Answers

Brad Brown

Level 3 Expert

19190 Answers

Are you a Microsoft Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...