
链表
快活书生
人生就像一次星际旅行,旅途中会遇到很多耀眼的星星,你可以选择努力与摘下一颗耀眼的明星,虽然这颗明星代表不了你的一生,但你的星途会因为那些你努力摘下的星星而更加璀璨!
展开
-
单向链表
#include <stdio.h> #include <stdlib.h> int N = 20; struct Node{ int data; struct Node* next; }; int searchfor(int *a, int len, int x){ if(len<1) return -1; if(*a == x) return N-len;原创 2017-07-22 14:31:18 · 273 阅读 · 0 评论 -
逆转链表
#include <stdio.h> #include <stdlib.h>typedef int ElementType; typedef struct Node *PtrToNode;// struct Node { ElementType Data; PtrToNode Next; }; typedef PtrToNode List;List createList(){原创 2017-10-24 20:35:39 · 203 阅读 · 0 评论 -
链表操作集
#include <stdio.h> #include <stdlib.h>#define ERROR NULL typedef int ElementType; typedef struct LNode *PtrToLNode; struct LNode { ElementType Data; PtrToLNode Next; }; typedef PtrToLNode Posit原创 2017-10-25 15:10:22 · 292 阅读 · 0 评论 -
期末复习-链表
#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #include &lt;string.h&gt; #define MAXSIZE 80 struct VIP_record{ char VIP_Name[20]; int VIP_Years; }; struct VIP_List{ struct VIP_record ...原创 2018-06-21 20:07:54 · 162 阅读 · 0 评论