Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

看我的代码,vc++上过了 ,为什么编译错误

Posted by hrlnldy at 2013-02-27 01:06:03 on Problem 1002
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator