Thursday 16 January 2014

CPP Program Question

Create a class "string" as user defined string type. Include constructors to create and initialize a string. Overload the operators + and <= to add and compare two strings.

C++ Program Question

Create a class TIME with data members hours, minutes and seconds. Include constructors to read and display time objects. Write a C++ program to add 2 time objects using operator overloading.