输入上机时间:");Р scanf("%d:%d",&student[i].begin.hour,&student[i].begin.minute);Р i = i + 1;Р system("pause");Р system("cls");Р Р?Р}Рvoid end_money() /*计算功能*/Р{Р?int m,minute,hour; /*保存时间*/Р?int no;Р?printf("请输入学号:");Р?scanf("%d",&no);Р?for(m = 0;m < i;m++)Р?{Р if(no == student[m].no)Р {Р printf("请输入%d的下机时间:",no);Р scanf("%d:%d",&student[m].end.hour,&student[m].end.minute);Р if(student[m].end.minute <student[m].begin.minute)Р {Р minute = student[m].end.minute +60 -student[m].begin.minute;Р hour = student[m].end.hour -1 - student[m].begin.hour;Р student[m].time_hour = hour;Р student[m].time_minute = minute;Р Р Р }Р elseР {Р minute = student[m].end.minute - student[m].begin.minute;Р hour = student[m].end.hour - student[m].begin.hour;Р student[m].time_hour = hour;Р student[m].time_minute = minute;