treearithmetic.inc

来自「全套资料包括:树及其在单片机中的算法实现及其相关源代码」· INC 代码 · 共 46 行

INC
46
字号
//======================================================
//  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 + =
减小字号Ctrl + -
显示快捷键?