摘要: #include<stdio.h> struct tree { int data; int l_ch; int r_ch; }; void add_node(struct tree* arr_1,int *arr,int start_index,int index) { arr_1[index].d 阅读全文
posted @ 2021-03-27 12:15 TO_ZG 阅读(140) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdbool.h> #include <stdlib.h> typedef struct node { int data; struct node* next; }Node; typedef struct line_stack { Node 阅读全文
posted @ 2021-03-27 12:07 TO_ZG 阅读(89) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #define NUMBER 100 int push(int* a, int top, int data) { a[++top] = data; return top; } int pop(int* a, int top) { if (top == -1) { 阅读全文
posted @ 2021-03-27 11:18 TO_ZG 阅读(124) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> struct node { int data; struct node *next; }; void init_node(struct node **p) { *p = malloc(sizeof(struct node) 阅读全文
posted @ 2021-03-27 10:41 TO_ZG 阅读(123) 评论(0) 推荐(0) 编辑