好文档 - 专业文书写作范文服务资料分享网站

(C语言)机房收费管理系统课程设计

天下 分享 时间: 加入收藏 我要投稿 点赞

scanf(\

if(student[m].end.minute

minute

=

student[m].end.minute

+60

-student[m].begin.minute;

} else {

=

student[m].end.minute

-

hour = student[m].end.hour -1 - student[m].begin.hour; student[m].time_hour = hour; student[m].time_minute = minute;

minute student[m].begin.minute;

}

if(minute > 0)

hour = student[m].end.hour - student[m].begin.hour; student[m].time_hour = hour; student[m].time_minute = minute;

{

hour = hour + 1;

printf(\上机时间为:%d:%d

费用

为:%d\

} else {

printf(\上机时间为:%d:%d 费用为:%d\ }

system(\ system(\清屏*/ } Void

/*按学号查询功能*/ {

int no;

select_no()

} }

int m;

printf(\请输入学号:\ scanf(\ for(m = 0;m < i;m++) { if(no == student[m].no) { printf(\学号为%d\\t\ printf(\班级为%s\\t\ printf(\姓名为%s\\t\

printf(\

为%d:%d\\t\

printf(\

为%d:%d\\t\

printf(\

为:%d:%d\\n\\t\ }

else if( m == i) { printf(\没有该记录:\\n\

}

}

system(\ system(\清屏*/ } void

/*按班级查询功能*/ {

char cla[10]; int m;

printf(\请输入班级:\ scanf(\ for(m = 0;m < i;m++) {

if(!strcmp(cla,student[m].cla)) {

printf(\学号为%d\\t\ printf(\班级为%s\\t\ printf(\姓名为%s\\t\ printf(\

select_cla()

为%d:%d\\t\

printf(\上机结束时间

为%d:%d\\t\

printf(\

为:%d:%d\\n\ }

system(\ system(\清屏*/ }

void select_name()/*按姓名查询功能*/ {

char name[10]; int m;

printf(\请输入姓名:\ scanf(\ for(m = 0;m < i;m++) {

}

else if( m == i) { }

printf(\没有该记录:\\n\

92rak9pd7148fsc2a7r62i4cx3q5hp00q2x
领取福利

微信扫码领取福利

微信扫码分享