Do this: The constructor in the . H file: public: Date(int=0, int=0, int=0); The implementation: Date::Date(int d, int m, int y)// DEFAULT CONSTRUCTOR { // Initialize data of this class } The prototype/declaration of method should mention the default arguments, not the implementation.
You probably have to add such constructor as well: public: Date(); Date(int, int, int); Date::Date()// DEFAULT CONSTRUCTOR { d = m = y = 0; }.
1- I do this changes .. the 2nd error just is gone .. th 1st still there . 2- How I initialize d, m, y without send them as a parameter – Mahmoud Aug 25 at 13:41 What happens when you have this code: Date d(10, 10, 2011);? – Shadow Wizard Aug 25 at 13:44 nothing changes – Mahmoud Aug 25 at 13:47 Can you post your new code?
Something here is weird. – Shadow Wizard Aug 25 at 13:59 I want a constructor that takes Date today(2011, 8, 25);. – Bo Persson Aug 25 at 16:06.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.