issuebook.cpp
来自「图书馆管理系统 包括界面、书籍管理、会员管理等内容」· C++ 代码 · 共 55 行
CPP
55 行
/*******************Function To Issue Book To Members ***********************/
# include"liba.h"
void issbook()
{
window(1,1,80,2);
textbackground(LIGHTGRAY);
clrscr();
textcolor(YELLOW);
gotoxy(30,1);
cprintf("Issue Book To Members");
window(1,2,80,25);
textcolor(WHITE);
textbackground(BLUE);
clrscr();
int i,j,k,id;
int f1,f2;
printf("\n\n");
gotoxy(5,2);
cprintf("Enter Book id::");
gotoxy(9,3);
cprintf("/");
gotoxy(13,3);
cprintf("/");
gotoxy(5,3);
scanf("%d",&i);
gotoxy(10,3);
scanf("%d",&j);
gotoxy(14,3);
scanf("%d",&k);
f1=chkbook(i,j,k);
if(f1==FALSE)
{
printf("\n\t No Such Book.....");
getch();
return;
}
printf("\n\t Enter Membership id::");
scanf("%d",&id);
f2=memcheck(id);
if(f2==FALSE)
{
printf("\n\t No Such Member.....");
getch();
return;
}
transac2(id,i,j,k,'I');
printf("\n\t Book Issued....");
textcolor(RED);
cprintf("press any to return");
getch();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?