#include "stdafx.h" #ifndef lint static const char SCCSID[]="@(#)PJ_vandg2.c 4.1 94/02/15 GIE REL"; #endif # define TOL 1e-10 #…
BT-3G 源代码
汇集 BT-3G 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
简单啦其实你可以去看看lisp的实现,其实就是 ( X Y) 第一个符号看成第一个节点 然后x是左节点,y是右节点 如果x,或y又是符号,就在开枝插就行了 然后从底部遍历树的每一层并计算就行了。 ______ | | x * ------- …
#include "stdafx.h" #ifndef lint static const char SCCSID[]="@(#)PJ_vandg4.c 4.1 94/02/15 GIE REL"; #endif #define PJ_LIB__ #in…
//程序名:main.cpp // 程序功能:二叉树基本操作的实现 // 作者:黄秋旋 // 日期:2008.11.9 // 版本:1.0 // 修改内容: // …
#include "math.h" #include "stdio.h" #include "14gam1.c" double beta(a,b,x) double a,b,x; { double y; double b…
Function BETAI(A, B, X) If X < 0# Or X > 1# Then Print "bad argument X in BETAI" If X = 0# Or X = 1# Then BT = …
Function BETAI(A,B,X:real):real; var AAA,BT:real; begin If (X < 0) Or (X > 1) Then ShowMessage('bad argument X in BETAI');…
void Exchange(BiTree &bt) /* Exchange the left and right leaves of */ /* bitree whose root node is bt */ { BiTree…
int c = 0; TElemType PreOrder(BiTree bt, int k) /* bt is the root node of a binary linked list, */ /* Preorder travel it and …
Status CompleteBiTree(BiTree bt) /* judge if the binary tree whose root is bt */ /* is a complete tree. */…