o(structBusesbus[]);//退票Рvoidshoupiao(structBusesbus[]);//声明售票函数Рvoidxitongtuichu();//声明退出函数Р//工具函数РstructBusescopy(structBusesb1,structBusesb2);//赋值Рvoidsort_time(structBusesbus[]);//声明按时间发车的先后顺序排序Рintcompare_time(structTimest1,structTimest2);//时间比较函数Рintcompare_systime(structBusesbus,tm*T);//比较发车时间与当前系统时间的函数Рvoidprint(structBusesbus);//声明输入出函数Рintnumber_search(structBusesbus[],intnum);//声明按班次查询函数Рintend_search(structBusesbus,charends[]);//声明按终点查询函数Рvoidmain(){//主函数Рwhile(1){Рsystem("cls");Рswitch(caidan()){Рcase1:lu();break;Рcase2:liulan(bus);break;Рcase3:chaxun(bus);break;Рcase4:shoupiao(bus);break;Рcase5:tuipiao(bus);break;Рcase6:save(bus);break;Рcase0:xitongtuichu();break;Р}Р}Р}Рintcompare_systime(structBusesbus,tm*T){//与系统时间的比较函数Р>=T->tm_hour){Рreturn1;Рreturn1;Рreturn1;Рelsereturn0;