- 博客(3)
- 收藏
- 关注
原创 有头链表 1
#include<stdio.h> #include<stdlib.h> struct Node { int date; struct Node next; }; struct Node cendhead() { struct Node headnode = (struct Node )malloc(sizeof(struct Node)); headnode->next = NULL; return headnode; }; struct Node cendnode(int
2020-06-04 14:47:56
199
原创 有头 链表的创建
struct Node {//创建有头链表 int date; struct Nodenext; }; struct Nodecendhead() { struct Node headenode = (struct Node)malloc(sizeof(struct Node)); headenode->next = NULL; return headenode;//创建表头 } struct Nodecendnode(int date) { struct Node newnode = (struct
2020-06-04 14:43:37
206
原创 有头链表的创建
有头链表的创建 struct Node { int date; struct Nodenext; }; struct Node cendnode(int date) {//创建链表 struct Nodenewnode = (struct Node)malloc(sizeof(struct Node)); newnode->date = date; newnode->next = NULL; return newnode; } struct List { struct Node* firnode
2020-06-03 17:00:28
218
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅