voidinput_points() { RD*p1; charrea_num[10]; intto_input_point,added_point; p1=h_reader; printf("\n充值模块...\n"); printf("\n请输入借书的读者书证号:"); scanf("%s",rea_num); printf("\n"); while(p1->next!=NULL&&strcmp(rea_num,p1->reader_num)!=0) p1=p1->next; if(p1->next==NULL&&strcmp(rea_num,p1->reader_num)!=0) { printf("\n此读者编号不存在!按任意键返回..\n"); gotoEND; } printf("请输入要充值的借阅积分:"); scanf("%d",to_input_point); added_point=(p1->point)+to_input_point; (p1->point)=added_point; printf("充值成功!\n\n请按任意键回到主菜单!"); getch(); system("cls"); }