{ void updatetime(Time new_time) { int mem number; ++new_time.seconds; char memname[20]; if(new_time.seconds==60) char memtype[]=”LIG”; { }; new_time.seconds=0; ++new_time.minutes; int main( ) } { if(new_time.minutes==60) Swimmingclub per1,per2; { cin>>”Member Number: new_time.minutes=0; “; cin>>memnumber.per1; ++new_time.hour; } cout<<”Member Name: “; if(new_time.hour==24) cin>>per1.membername; new_time.hour=0; per1.memtype = “HIG”; } per2=per1; int main() { cin>>”Member Number;“ <<per2.memnumber; Time cur_time; cin<<”Member Name” <<per2.memname; cout<<"Enter the time(hh:mm:ss:):\n"; cin<<”Member Number:”<<per2.memtype; cin>>cur_time.hour>>cur_time.minutes>> return 0; cur_time.seconds; } updatetime(cur_time); cout<<"New time is"<<cur_time.hour<<":"<<cur_time.minutes <<":" <<cur_time.seconds<<endl; return 0;
{ int mem number; char memname[20]; char memtype[]=”LIG”; }; int main( ) { Swimmingclub per1,per2; cin>>”Member Number: “; cin>>memnumber.per1; cout<<”Member Name: “; cin>>per1.membername; per1.memtype = “HIG”; per2=per1; cin>>”Member Number;“ <<per2.memnumber; cin<<”Member Name” <<per2.memname; cin<<”Member Number:”<<per2.memtype; return 0; } void updatetime(Time new_time) { ++new_time.seconds; if(new_time.seconds==60) { new_time.seconds=0; ++new_time.minutes; } if(new_time.minutes==60) { new_time.minutes=0; ++new_time.hour; } if(new_time.hour==24) new_time.hour=0; } int main() { Time cur_time; cout<<"Enter the time(hh:mm:ss:):\n"; cin>>cur_time.hour>>cur_time.minutes>> cur_time.seconds; updatetime(cur_time); cout<<"New time is"<<cur_time.hour<<":"<<cur_time.minutes <<":" <<cur_time.seconds<<endl; return 0;
1787086403holiday_homework_xii_2018.docx