#include <stdio.h>
struct Book
{
char name[20];
short price;
};
int main()
{
struct Book b1 = { "鸡你太美",55 };
printf("书名:%s\n", b1.name);
printf("价格:%d元\n", b1.price);
return 0;
}
#include <stdio.h>
struct Book
{
char name[20];
short price;
};
int main()
{
struct Book b1 = { "鸡你太美",55 };
printf("书名:%s\n", b1.name);
printf("价格:%d元\n", b1.price);
return 0;
}