typedef struct {
unsigned short int Position; // << That's what i'm trying to change!
unsigned short int OldPosition;
} Turn_s;
struct Turn_sMap{
Turn_s *Turn;
Turn_sMap *NextTurn;
};
New = new Turn_sMap;
New->Turn = new Turn_s;
New->Turn.Position = 0; // Already tried (New->Turn).Position = 0;
为什么我得到那个编译错误?我没有访问 struct New 中的 struct Turn,它又具有一个名为 Position 的成员吗?或者 typedef 是否会用一些指针疯狂来混淆结构类型?请帮忙,我迷路了!):