- 19
- 0
- 约5.29千字
- 约 8页
- 2022-09-12 发布于河北
- 举报
struct book /* 图书信息*/
{
int num; /*书号*/
char name[10 ]; / *书名*/
char where [10]; / *所在书库*/
char author [15]; /*作者*/
char pub [20]; / *出版社*/
int count; / *数量*/
struct book *next;
};
/*输出模块*/
void print (struct book *p0)
{
struct book *p;
p=p0-〉next;
print (\n\n\t\t^^^^^^^^^^^^^^图书信息表^^^^^^^^^^^^^^);
printf(\n\n 图书编号——-图书名称———所在书库-—-—作者—-——出版社
-—-数量\n) ;
while(p =NULL)
{
print (PT);
p=p-next;
}
getch() ;
}
/ *输入模块*/
struct book *creat( )
{
struct book *head, *p1, *p2;
int i=0;
head=p2=(struct book *)malloc(N);
head—〉next=NULL;
printf(”\n\n\t\t 录入图书
原创力文档

文档评论(0)