各位大侠帮指点下哪错了
#include<stdio.h>#include<malloc.h>
#include<alloc.h>
struct line
{
char data;
struct line *next;
}stu;
/*输出链表函数*/
void print(struct line *head)
{
struct line *r;
r=head;
while(r)
{
printf("%c ",r->data);
r=r->next;
}
printf("\n");
}
/*删除节点函数*/
void Delete(struct line *head)
{
char i;
scanf("%c",&i);
struct line *q,*p;
q=head;
p=q->next;
while(p->data!=i&&p)
{
q=p;
p=p->next;
}
if(p==NULL)
printf("No\n");
else
q->next=p->next;
free(p);
}
void main()
{
char ch;
struct line *s,*head=NULL;
ch=getchar();
while(ch!='\n')
{
s=(struct line *)malloc(sizeof(struct line));
s->data=ch;
if(head==NULL) //如果为空就把头链表地址赋给head
{
head=s;
s->next=NULL;
}
else
s->next=head;
head=s;
ch=getchar();
}
print(head);
Delete(head);
print(head);
}
错误提示:“fatal error C1083: Cannot open include file: 'alloc.h': No such file or
directory”