- 博客(4)
- 收藏
- 关注
原创 二叉树的遍历(贼重要)
二叉树的遍历#include <stdio.h>#include <malloc.h>typedef struct BiNode{ char date; //节点数据 struct BiNode *lchild,*rchild;//左右孩子指针}BiNode,*Bitree;void creatBitree(Bitree * T){ char c; scanf("%c",&c);//输入字符 if(c=='#') *T = NULL; //保证
2020-08-27 16:16:13
113
原创 C语言单链表的实现(初始化,malloc,头插,尾插,指定位置插等等)
首先包含头文件#include <stdio.h>#include <stdlib.h> #include <stdbool.h>#include <assert.h>```c //定义节点结构体typedef struct Node{ int date; //数据域 struct Node *next; //指针域}Node ,*Linklist; //*Linklist 的意思是 struct Node * Linklist
2020-06-18 21:51:10
879
原创 1day——初识C语言
2、编写程序打印类型的大小【bool、char、 short、 int 、float 、double、 long、long long】#include<stdio.h>#include<stdlib.h> //system需要的头文件int main(){ printf("%d\n", sizeof(bool)); printf("%d\n", size...
2019-09-20 00:38:40
163
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人