![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
Tinide
这个作者很懒,什么都没留下…
展开
-
创建单链表3
#define OK 1; #define ERROR 0; #include using namespace std; typedef int Status; typedef struct LNode { int data; struct LNode *next; }LNode,*Linklist; void print_list(Linklist &L) { Link翻译 2012-11-08 22:34:46 · 384 阅读 · 0 评论 -
单链表的创建及操作
/* *单链表的创建及操作 *AUTHOR:CplusHua *DATE:2012-10-28 *Vertion:0.0.1 */ #include #include "malloc.h" #include #define ElemType int using namespace std; //定义线性表的单链表存储结构 typedef struct Lnode{翻译 2012-11-08 22:49:36 · 655 阅读 · 0 评论 -
创建单链表2
#include <stdio.h> #define elemtype int #define NULL 0 typedef struct node { elemtype data; struct node * next; }node; void main() { node *p; p=(node *)malloc(sizeof(node)); if(!p)翻译 2012-11-08 22:33:00 · 495 阅读 · 0 评论