#include <stdio.h>
typedef struct list
{
char data;
struct list *next;
} Q;
void fun( Q *pa, Q *pb, Q *pc)
{
Q *p;
pa->next=pb; //pa指向pb
pb->next=pc; //pb指向pc
p=pa;
while( p )
{
printf(" %c\t",p->data);
p=p->next;
}
printf("\n");
}
void main()
{
Q a, b, c;
a.data='E'; b.data='F'; c.data='G'; c.next=NULL;
fun( &a, &b, &c );
system("pause");
}