请教 如何求广义表的逆表?
广义表的数据类型是:typedef char ElemType;
typedef struct GLode
{
int tag; /*结点类型标识*/
union
{
ElemType atom; /*原子值*/
struct GLode *hp; /*指向子表的指针*/
} val;
struct GLode *tp; /*指向下一个元素*/
} GList;
如何实现广义表的逆置输出? 谢谢
2008-09-07 17:06