Tag: member variables

在这些声明中,以下表达式是什么类型,它们是否正确?

struct place { char name[80+1]; double latitude; double longitude; }; struct node { struct place city; struct node *next; }; struct node *head; head head -> city head -> next head -> city -> name head -> next ->city.name 这些任务总是让我在考试中失分,任何人都可以解释一下吗? 它询问提到的变量是什么类型,我想像head这样的东西只是一个指向整个结构node值的指针?