typedef struct {
struct {
double i1, i2;
} EXP;
struct {
double i1, i2;
} SIN;
struct {
double i1, i2;
} PULSE;
struct {
double *i1, *i2;
} PWL;
} TRANS;
struct term {
TRANS trans;
struct term *nxt;
};
int main() {
struct term *look;
}
我有上面的结构和指针看结构术语。有人可以告诉我如何在 struct PWL 中取消引用指针 i1 吗?
我试过这个:
*(look->trans.PWL.i1)
但它会产生分段错误。
提前致谢!