數據結構學習(5):鏈棧

重點只講一下Push和Pop,可是基本上理解了這倆,剩下的都能弄懂web Status Push(LinkStack *S,SElemType e){ LinkStackPtr p=(LinkStackPtr)malloc(sizeof(StackNode)); p->data=e; p->next=S->top; S->top=p; S->count++; return OK; }svg 在這個
相關文章
相關標籤/搜索