jie树的jie怎么写( 六 )

#include//#include#include#define NULL 0typedef char Elemtype;typedef struct BinNode{Elemtype data;struct BinNode *lchild,*rchild;//左右孩子指针}BinTNode,*BinTree;//按前序构造二叉树链表表示的二叉树序列BinTree CreateBinTree(BinTree &T){char ch;scanf("%c,\n",&ch);if(ch=='#') T=NULL;else{T=(BinNode *)malloc(sizeof(BinNode));T->data=http://www.xuexi88.com/zhishi/ch;//生成根结点CreateBinTree(T->lchild);//生成左子树CreateBinTree(T->rchild);//生成右子树}//ifreturn T;}//CreateBinTreevoid Visit(char dataa){printf("%c",dataa);}//前序遍历二叉树void PreOrderTraverse(BinTree T){//前序遍历二叉树T的递归算法 , Visit是访问数据元素的函数if(T)//二叉树非空{Visit(T->data);//访问根结点PreOrderTraverse(T->lchild);//前序遍历左子树PreOrderTraverse(T->rchild);//前序遍历右子树}//if}//PreOrderTraverse//中序遍历二叉树void InOrderTraverse(BinTree T){//中序遍历二叉树T的递归算法 , Visit是访问数据元素的函数if(T)//二叉树非空{InOrderTraverse(T->lchild);//中序遍历左子树Visit(T->data);//访问根结点InOrderTraverse(T->rchild);//中序遍历右子树}//if}//InOrderTraversevoid PostOrderTraverse(BinTree T){//后序遍历二叉树T的递归算法 , visit是访问数据元素的函数if(T)//二叉树非空{PostOrderTraverse(T->lchild);//后序遍历左子树PostOrderTraverse(T->rchild);//后序遍历右子树Visit(T->data);//访问根结点}//if}//PostOrderTraverse//求二叉树的深度int Depth(BinTree T){int DepthLeft,DepthRight,depthval;if(!T)return 0;else{DepthLeft=Depth(T->lchild);DepthRight=Depth(T->rchild);depthval=1+(DepthLeft>DepthRight?DepthLeft:DepthRight);return depthval;}//if}//Depthvoid CountLeaf(BinTree T,int &count0,int &count2){//统计二叉树中的叶子节点个数if(T){if((!T->lchild)&&(!T->rchild))count0++;CountLeaf(T->lchild,count0,count2);CountLeaf(T->rchild,count0,count2);}count2=count0-1;}void Countduone(BinTree T,int &count1){//统计二叉树中度为1的结点个数if(T){if(((!T->lchild)&&(T->rchild))||((T->lchild)&&(!T->rchild)))count1++;Countduone(T->lchild,count1);Countduone(T->rchild,count1);}}int ZongNode(int &a,int &b,int c){return (a+b+c);}void main(){BinTree Tr;int count0,count1,count2;int jie;count0=0;count1=0;count2=0;printf("按前序次序输入 , 以#表示为空:\n");CreateBinTree(Tr);printf("\n前序遍历结果为:\n");PreOrderTraverse(Tr);printf("\n中序遍历结果为:\n");InOrderTraverse(Tr);printf("\n后序遍历结果为:\n");PostOrderTraverse(Tr);printf("\n该二叉树的深度为:\n%d",Depth(Tr));printf("\n该二叉树的叶子节点个数为:\n");CountLeaf(Tr,count0,count2);printf("%d",count0);printf("\n该二叉树的所有结点数为:\n");//CountLeaf(Tr,count0,count2);Countduone(Tr,count1);jie=ZongNode(count1,count2,count0);printf("%d",jie);printf("\n");} 。
9.谁知道静心咒全文是什么意思是心静若水 , 风气风来 , 心中波澜不惊 , 独自坐着 , 吹箫鸣琴 , 心无旁骛 , 一身正气 , zhidao鬼神都害怕 , 豪情壮志 , 我心归一 , 至善至美 , 心底淳朴 。
拓展资料:
1.静心咒又称宁心咒、清心咒 , 众生皆烦恼 , 烦恼皆苦 , 烦恼皆不生不灭 , 不垢不净 , 不增不减 , 有形者 , 生于无形 , 无能生有 , 有归于无 。
2.静心咒 , 不是你念几遍就可以做到清新了 , 咒代表的是一个系统 , 一个体系 , 像心若冰回清 , 你需要心无杂念 。
3.整个人都想象成冰山 , 慢慢的 , 才可以理解这种状态 , 所谓的清心咒 , 是对你心境的一个引导 , 代表一种完美的状态 , 一心悟之 , 清心咒什么的 , 并不是局限于字面意思