C++ program to display time using class

 

Sample Input
Enter hour:2
Enter minute:43
Enter seconds:55
Sample Output
Time is 2:43:55

You may also like...