代码搜索:链表实现

找到约 10,000 项符合「链表实现」的源代码

代码结果 10,000
www.eeworm.com/read/393381/8291154

txt 单链表的操作.txt

//2. 单链表 #include #define elemtype int using namespace std; class link { public: elemtype data; link *next;}; link *hcreat() { link *s,*p; elemtype i; p=new li
www.eeworm.com/read/247693/12627307

txt 单链表的反转.txt

有一单链表n1->n2->...n(x-1)->nx,请问如何在不使用辅助节点的情况下实现该链表的反转呢? 反转后变成nx->n(x-1)->...n2->n1 . (随机测试,最大最至20000,都能有正确的结果) 代码如下: #include #include #define S
www.eeworm.com/read/235777/14053412

c 单链表的查找.c

/* 单链表的查找:带头结点的单链表中,判断有无结点的值等于x,有则返回当前指针,没有返回空*/ #include "Stdio.h" #include "Conio.h" #define flag 0 typedef int datatype; //结点定义 typedef struct node { datatype data; struct nod
www.eeworm.com/read/203179/15364438

h 模板链表_02.h

#ifndef EXAMPLE9_02_H #define EXAMPLE9_02_H #include #include using namespace std; template class ListNode //结点类 { public: ListNode(){}
www.eeworm.com/read/112405/15486050

txt 单链表~1.txt

www.eeworm.com/read/107030/15614544

c 双链表正排序.c

#include #include #include struct list{ int data; struct list *next; struct list *pre; }; typedef struct list node; typedef node *link; link fr
www.eeworm.com/read/107030/15614546

c 建立链表1.c

/* 链表建立程序 */ #include"stdio.h" #include #define NULL 0 #define LEN sizeof(struct student) struct student {long num; int score; struct student *next; }; int n; /*全局变量n*/ str
www.eeworm.com/read/107030/15614549

c 单链表倒序.c

#include struct fsb { int data; int flag; struct fsb * next; }; main() { struct fsb *p,*head,*sta,*end; int i,cishu,j; end=(struct fsb *)malloc(sizeof(struct fsb))