一、声明
1.1、声明
struct fraction {
int numerator;
int denominator;
};
1.2、赋值
- 单一赋值 ```c struct fraction f1;
f1.numerator = 22; f1.denominator = 7;
- 批量赋值
```c
struct car {
char* name;
float price;
int speed;
};
struct car saturn = {"Saturn SL/2", 16000.99, 175};