点击(此处)折叠或打开
-
struct book{
-
char *name;
-
float price;
-
};
-
struct book a = {"hey", 9.9};
-
struct book b = {
-
name:"hello",
-
price: 19.9
-
};
-
struct book c = {
-
.name = "world",
-
.price = 10.9
- };