代码搜索:链表实现
找到约 10,000 项符合「链表实现」的源代码
代码结果 10,000
www.eeworm.com/read/157427/5606510
c 单链表.c
#include
#include
struct roommate
{
char name[20];
long num;
int age;
char birthplace[20];
struct roommate *next;
};
struct roommate *head,*cthis,*cnew;
void
www.eeworm.com/read/157427/5606514
c 链表(递归).c
#include
#include
struct listNode{
int data;
struct listNode *nextPtr;
};
typedef struct listNode LISTNODE;
typedef LISTNODE * LISTNODEPTR;
LISTNODEPTR list(LISTNODEPTR , int); /
www.eeworm.com/read/295279/8171446
txt 单向 链表.txt
kid_in_the_sky上传的代码,非常感谢!
import java.util.*;
public class Node{ //这个Node类写的很好!
private int value;
public Node next;
public Node(){
value = 0;
next = null;
}
public Node(in
www.eeworm.com/read/270106/11047851
txt 城市链表.txt
城市链表
【问题描述】
将若干城市的信息,存入一个带头结点的单链表。结点中的城市信息包括:城市名,城市的位置坐标。要求能够利用城市名和位置坐标进行有关查找。
【基本要求】
(1) 给定一个城市名,返回其位置坐标;
(2) 给定一个位置坐标P和一个距离D,返回所有与P的距离小于等于D的城市。
#include
#include ...
www.eeworm.com/read/415872/11049752
txt 链表反转.txt
#include
using namespace std;
typedef struct _NODE
{
int value;
_NODE * next;
_NODE(int v);
}NODE, *PNODE;
_NODE::_NODE(int v)
{
value=v;
next=NULL;
}
class LinkList
www.eeworm.com/read/414072/11131420
txt 双向链表.txt
查看文章
双向循环链表的建立、插入、查找、删除、输出2008-09-11 22:55//编译环境:Dev-c++ 4.9.9.2
#include
#include
#define NULL 0
typedef char datatype;
typedef struct node
{
datatype data[20];
st
www.eeworm.com/read/414071/11131425
txt 单向链表.txt
#include
#include
#define NULL 0
struct list{
int d;
list *next;
};
list *head=(list *)malloc(sizeof(list));
list *p1=head;
int e,d;
void insert()
{
if(p1==NULL)
www.eeworm.com/read/135655/13912125
cpp 单链表.cpp
#include "iomanip.h"
#include "stdlib.h"
#include "string.h"
struct student
{
char name[10];
short grade;
};
typedef student elemtype;
struct Lnode{
elemtype data;
Lnode *next;
};
bool op
www.eeworm.com/read/132815/14072349
cpp 链表操作.cpp
//链表的插入及链表的交、并、差运算。
//其它参见"文档RTF"中的内容。
#include
#include
using namespace std;
struct NODE
{
int data;
NODE *next;
};
class LinkList
{
private:
www.eeworm.com/read/132382/14090653
c 单链表.c
#include
#include
typedef int elemtype;
typedef struct node
{
elemtype data;
struct node *next;
}node,*linklist;
linklist creatlink(linklist L,int length)
{