int i;i=1;void main(){}这是合理的,但若是:struct book{int number;char name[31];}struct book *p,*head;head=NULL;p=(struct book*)(malloc(sizeof(struct book)));void main(){}他就报错,怎么解决
i=1;可以
哦,知道了,谢谢