📄 travelsal.cpp
字号:
// Travelsal.cpp : Defines the entry point for the console application.
//用队列实现二叉树的层次遍历 SY0707221 周万琳
#include "stdafx.h"
#include "stdlib.h"
#include "queue.h"
#include "Tree.h"
int main(int argc, char* argv[])
{
Tree tree1;
printf("请按中序输入二叉树!\n");
struct binode * q;
q = (struct binode *) malloc (sizeof(struct binode));
q = tree1.createTree();
tree1.Travelsal(q);
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -