正在加载图片...
23,2典型操作的算法实现 1.初始化链表L int Initlist(linK list l) L->head=*NODE)malloc(sizeof(NODE)); ∥.头结点分配存储单元 if (L->head)L->head->next=NULL; return OK else return error 请单鼠标左键换页!2.3.2 典型操作的算法实现 1. 初始化链表L int InitList(LINK_LIST *L) { L->head=(*NODE)malloc(sizeof(NODE)); //为头结点分配存储单元 if (L->head) {L->head->next=NULL; return OK;} else return ERROR ; }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有