Реферат: Программирование на языках высокого уровня 3
printf("Sign=");
scanf("%s",& p->sign);
printf("Weight=");
scanf("%d",& p->weight);
if(p->weight==0)
{
free(p);
return NULL;
}
p->pc=input();
return p;
}
void output(struct cell *p)
{
if (p==NULL)
{
printf("\nEND");
return;
}
printf("\nsign=%s\tweight=%d",p->sign,p->weight);
output(p->pc);
}
void main(void)
{
struct cell *beg=NULL;
beg=input();
printf("\nBegin");
output(beg);
}
12