#include"stdio.h"
struct Book getInput(struct Book book);
void output(struct Book book);
struct BooK {
char name;
int money;
char author;
};
struct Book getInput(struct Book book)
{
printf("请输入书名:");
scanf("%s",book.name);
printf("请输入售价:");
scanf("%d",&book.money);
printf("请输入作者:");
scanf("%s",book.author);
return book;
}*/
void struct BOOK output(struct Book book)
{
printf("书名:%s",book.name);
printf("售价:%d",book.money);
printf("作者:%s",book.author);
}
int main()
{
struct BooK b1,b2;
printf("请录入第一本书的信息:");
b1=getInput(b1);
printf("\n\n\n");
printf("请录入第二本书的信息:");
b2=getInput(b2);
printf("\n\n\n录入成功\n\n\n");
printf("请验证信息");
output(b1);
printf("\n\n\n");
output(b2);
return 0;
}