⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 treearithmetic.inc

📁 全套资料包括:树及其在单片机中的算法实现及其相关源代码
💻 INC
字号:
//======================================================
//  File Name:      TreeArithmetic.inc
//  Programmer:     Zhifa Lee 	(email: zhifa/sunnorth)    (ext: 2913)
//  Version:        1.0.0
//  Date            2003-5-19
//  Applied body:   unsp serial
//  Description:    define the data structure and const of TreeArithmetic programe 
//  Revision history:
//  -----------------------------------------------------------------------------------------------
//  Version, YYYY-MM-DD-Index, File-Name: Modified By, Description
//  -----------------------------------------------------------------------------------------------
//======================================================


//*******************************************************************************************\
// This file define the data structure and const of TreeArithmetic programe.                 |
// Please include this file when you use the TreeArithmetic programe.                        |
// You can change the data structure defined in this file to fit your application.           |
//*******************************************************************************************/


.IFNDEF _TreeArithmetic_INC_
.DEFINE _TreeArithmetic_INC_

.IFNDEF CONTENT_SIZE
.DEFINE CONTENT_SIZE  1
.ENDIF

.IFNDEF POINTOR_NUMBER
.DEFINE POINTOR_NUMBER 0
.ENDIF
TREENODE: .STRUCT
		Content:		.DW  CONTENT_SIZE DUP(0);
.IF POINTOR_NUMBER==0
.ENDIF
.IF POINTOR_NUMBER==1
		ParentPointor:	.DW 0;
.ENDIF
.IF POINTOR_NUMBER==2
		LeftPointor:	.DW 0;
		RightPointor:	.DW 0;
.ENDIF
          .ENDS
.DEFINE TREENODE_SIZE CONTENT_SIZE+POINTOR_NUMBER

.ENDIF

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -