Making it happen
class A { protected: int a; protected: A(int a) { this->a = a; } public: A() { a = 15; } }; class B : public A { public: B(const A & a) { this->a = a.a; } };
Congratulations! Because of your team’s hard work and exceptional final report, you have been selected to take part in the Windows Embedded Student ChallengE (WESC) 2006 World Finals!
int firstday = (1 + 2*m + (3*(m+1)/5) + y + (y/4) - (y/100) + (y/400) + 2) % 7 - 1