#include #include class time { int h,m,s; public: void input(void) { cout<<"\n Enter the time in the format HH:MM:SS : "; cin>>h>>m>>s; } friend void add (time, time); }; void add (time a, time b) { int hh,mm,ss,h1,m1,s1; ss=(a.s+b.s)/60; mm=(a.m+b.m)+ss; m1=mm%60; hh=mm/60; h1=(a.h+b.h)+hh; s1=(a.s+b.s)%60; cout<<"\nAfter adding the two times : "<