
数据结构复习
zoe9698
Nothing
展开
-
严蔚敏数据结构复习(C)-1-顺序表的初始化以及赋值
/*time:2018/9/20function: 顺序表的初始化 b1赋值给顺序表summarize: 1.结构体声明2种 #1# typedef struct { char no[20];//图书ISBN char name[50];...原创 2018-09-20 21:36:11 · 4149 阅读 · 0 评论 -
数据结构-单链表创建(头插尾插)遍历_C版
/*在一个递增有序的单链表中有数值相同的元素存在目标:删除数值相同的元素,使表中不再有重复的元素*/#include<stdio.h>#include<stdlib.h>typedef struct _node{ int data; struct _node * next;}Node;/*自动生成(1,2,3,4,5,6,7,8,9,10)链表...原创 2019-03-20 15:38:56 · 380 阅读 · 0 评论 -
关于C语言中链表声明中结构体的使用方法
typedef struct _node{ int data; struct _node * next;};//尾插法:创建一个递增有序的单链表_node* last_create(){ _node *head = (_node*)malloc(sizeof(_node)); head->data = 10;//带头结点,头结点dat...原创 2019-03-20 16:12:11 · 2082 阅读 · 0 评论