- 博客(4)
- 收藏
- 关注
原创 将两个链表合并为一个链表
#include <stdio.h>#include <malloc.h>#include <stdlib.h>typedef struct LNode{int data;struct LNode * next;}LNode ,* LinkList ;void CreatList(LinkList * L,int n);void ListTraverse(LinkList );bool GetElem(LinkList L,int *i,int *e);
2021-04-26 20:50:10 3434 1
原创 用栈实现迷宫问题
#include <stdio.h>#include <stdlib.h>#include <malloc.h>#define MAXSIZE 500 //栈最大的容量#define MAXLENGTH 20//设置最大的行和列是20 20*20typedef struct{int x;int y; }PosType;//PosType 坐标类型的变量PosTypetypedef struct {int ord;//用于存放路线PosTy
2021-04-06 21:19:23 3343 8
原创 链表的pNext与指针变量的使用失误导致的错误
创建一个链表(用c语言)代码#include <stdio.h>#include <malloc.h>#include <stdlib.h>typedef struct Node{ int number;//链表中存放的数据 struct Node * pNext;//链表中的指针域 } NODE,* PNODE;//NODE 和PNODE就分别相当于 struct Node和struct Node *类型 PNODE creat_list(
2021-02-03 20:21:41 457
原创 链表
#链表2.代码#include <stdio.h>#include <malloc.h>#include <stdlib.h>typedef struct Node{ int number;//链表中存放的数据 struct Node * pNext;//链表中的指针域 } NODE,* PNODE;//NODE 和PNODE就分别相当于 struct Node和struct Node *类型 PNODE creat_list(void);
2021-02-03 20:08:22 147
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人