下列 fun() 函数的功能是:构成一个如图所示的带头结点的单向,在结点 的数据域中放入了具有两个字符的字符串。 Disp() 函数的功能是显示输出该单中 所有结点中的字符串。请填空完成 disp() 函数。 #include
typedef struct node /* 结点结构 * / { char sub[3]; struct node *next; }Node; Node fun(char s) / * 建立 * / { ...... } void disp(Node *h) { Node *p; p=h− >next; while( ) {printf("%s\n",P− >sub); p= ; } } main( ) { Node *hd; hd=fun( ); disp(hd); printf("\n"); }