摘要:
程序: 1 #include <stdio.h> 2 #include <stdlib.h> 3 typedef struct TreeNode *Tree; 4 struct TreeNode{ 5 int v; 6 Tree Left,Right; 7 int flag; 8 }; 9 Tree 阅读全文
posted @ 2019-05-04 22:13
cxc1357
阅读(313)
评论(0)
推荐(0)
摘要:
程序: 1 #include <stdio.h> 2 #include <queue> 3 #define MaxTree 20 4 #define Null -1 5 using namespace std; 6 7 struct TreeNode { 8 int Left; 9 int Righ 阅读全文
posted @ 2019-05-04 18:24
cxc1357
阅读(229)
评论(0)
推荐(0)
摘要:
程序: 1 #include <stdio.h> 2 #define MaxTree 10 3 #define ElementType char 4 #define Tree int 5 #define Null -1 6 7 struct TreeNode { 8 ElementType Elem 阅读全文
posted @ 2019-05-04 15:46
cxc1357
阅读(251)
评论(0)
推荐(0)
摘要:
程序: 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 typedef int ElementType; 5 typedef struct Node *PtrToNode; 6 struct Node { 7 ElementType Data; 8 Pt 阅读全文
posted @ 2019-05-04 12:14
cxc1357
阅读(1090)
评论(0)
推荐(0)
摘要:
模拟栈进出 方法一: 1 #include<stdio.h> 2 #define MAXSIZE 1000 3 4 typedef struct{ 5 int data[MAXSIZE]; 6 int top; 7 }SqStack; 8 9 int InitStack(SqStack *s){ 1 阅读全文
posted @ 2019-05-04 11:18
cxc1357
阅读(226)
评论(0)
推荐(0)

浙公网安备 33010602011771号