返回广义表的长度,即元素个数 int GListLength(GList L) { int len = 0; if(!L) return 0; if(L->tag == ATOM) return 1; while(L)
http://user.qzone.qq.com/825224710/main返回广义表的长度,即元素个数 int GListLength(GList L) { int len = 0; if(!L) return 0; if(L->tag == ATOM) return 1; while(L) { L = L->a.ptr.tp; len++; }
http://blog.sina.com.cn/s/blog_14d8952290102vo6f.html
L = L->a.ptr.tp;len++;}
数据结构之---C语言实现广义表头尾链表存储表示
最新推荐文章于 2023-07-10 16:41:02 发布