Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
看我的代码,vc++上过了 ,为什么编译错误typedef struct Link{ int num; char s[9]; struct Link *next; }LinList; <22>LinList *head = NULL; Main.c F:\temp\11289756.297439\Main.c(22) : error C2275: 'LinList' : illegal use of this type as an expression F:\temp\11289756.297439\Main.c(9) : see declaration of 'LinList' F:\temp\11289756.297439\Main.c(22) : error C2065: 'head' : undeclared identifier F:\temp\11289756.297439\Main.c(24) : error C2143: syntax error : missing ';' before 'type' F:\temp\11289756.297439\Main.c(25) : error C2065: 'i' : undeclared identifier F:\temp\11289756.297439\Main.c(25) : error C2065: 'i' : undeclared identifier F:\temp\11289756.297439\Main.c(25) : error C2065: 'i' : undeclared identifier F:\temp\11289756.297439\Main.c(31) : error C2275: 'LinList' : illegal use of this type as an expression F:\temp\11289756.297439\Main.c(9) : see declaration of 'LinList' 直接有错误,之后全是LinList的类型错误,????求解 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator