typedef struct { Elemtype data; tNode* left; tNode* right; }tNode,*pNode,*pTree; 出现以下错误: error C2143: syntax error : missing ';' before '*' error C2501: 'tNode' : missing storage-class or type specifiers error C2501: 'left' : missing storage-class or type specifiers error C2143: syntax error : missing ';' before '*' error C2501: 'tNode' : missing storage-class or type specifiers error C2501: 'right' : missing storage-class or type specifiers error C2039: 'left' : is not a member of 'tNode' typedef struct tNode { ELEM data; tNode* left; tNode* right; }tNode,*pTree; 错误消失 //typedef 的定义 typedef 给久类型定义新名字,其格式就像声明一样。 例如:typedef int(*pf)(int* ,int*); //struct structName { 成员列表; } structName 必须写