Design a program to input a date from user in the form
day/month/year (e.g. 2/6/2000) and report whether it’s a
valid date or not. The program should take account of leap
years. You will need to know that a leap year is a year that
is exactly divisible by 4, except that century years are
only leap years if they are divisible by 400.
Answer Posted / jkl
Design pattern is a general repeatable solution to a
commonly occurring problem . A design pattern is not a
finished design that can be transformed directly into code.
It is a description or template for how to solve a problem
that can be used in many different situations.
Object-oriented design patterns typically show
relationships and interactions between classes or objects,
without specifying the final application classes or objects
that are involved.
Design patterns deal specifically with problems at the
level of software design.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that
What does getch() do according to the ANSI C++ standard a) Reads in a character b) Checks the keyboard buffer c) Nothing in particular (Its not defined there)
How do you invoke a base member function from a derived class in which you have not overridden that function?
What is nested class in c++?
What is object oriented programming (oop)?
Can you overload the operator+ for short integers?
How do you clear a buffer in c++?
What is meant by entry controlled loop? What all C++ loops are exit controlled?
How much maximum can you allocate in a single call to malloc()?
What are references in c++?
Is it possible to have a recursive inline function in c++?
Is string an object in c++?
Difference between declaration and definition of a variable.
How many ways can a variable be initialized into in C++?
What are shallow and deep copy?