Can we distribute function templates and class templates in object libraries?
No Answer is Posted For this Question
Be the First to Post Answer
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.
What is the standard template library (stl)?
Explain what are the sizes and ranges of the basic c++ data types?
what is C++ exceptional handling?
What is class and structure in c++?
What is a dynamic binding in c++?
Write about a nested class and mention its use?
In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest.
Which is best c++ or java?
What is the difference between the parameter to a template and the parameter to a function?
Does a derived class inherit or doesn't inherit?
What is the use of class in c++?