定位失败
定位失败是什么意思?
#include <stdio.h>
#include<stdlib.h>
#include <ctype.h>
struct Arcnode{
int adj;
char a[10];
struct Arcnode *next;
}Arcnode,*b;
struct VNode
{
int ad;
struct Arcnode *first;
}a[4000];
main()
{
char *p;int s,s1;int i;
for(i=1;i<=4000;i++)
{a[i].ad=i;
a[i].first=NULL;}
for(i=1;i<=1;i++)
{printf("shuru luxian");
gets(p);
scanf("%d",&s);
while(s!=0)
{scanf("%d",&s1);
b=(struct Arcnode*)malloc(sizeof(Arcnode));
b->adj=s;
strcpy(b->a,*p);
b->next=a[s].first;
a[s].first=b;
s=s1;}
}
}