void outlist(SLIST *h) SLIST *p; p=h->next; if(p==NULL)printf("\nThe list is NULL!\a"); else printf("\nHead"); do printf("->%d",p->data);p=p->next;while(p!=NULL); printf("->End\n");
main() SLIST *head; int a[N]=11,12,15,18,19,22,25,29; head=creatlist(a); printf("\nOutput from head:\n");outlist(head); printf("\nOutput from tail:\n"); while(head->next!=NULL) fun(head); printf("\11\n"); printf("\nOutput from head again:\n");outlist(head);