1.[问题描述] 编写递归算法,计算二叉树中叶子结点的数目 [输入] 按照先序序列的顺序输入该结点的内容。其输入abd eh cf i g . [输出] 按中序序列输出,输出的结果为;dbheaficg并计算出二叉树中叶子结点的数目为4 [存储结构] 采用二叉表存储 [算法的基本思想] 采用递归方法建立和遍历二叉树。首先建立二叉树的根结点,然后建立其左右子树,直到空子树为止,中序遍历二叉树时,先遍厉左子树,后遍厉右子树,最后访问根结点。根据左右子树的最后一个结点计算出二叉树中叶子结点的数目。 程序如下: #include<stdio.h> #include<malloc.h> #include"stdlib.h"
上传时间: 2015-11-16
上传用户:GavinNeko
2.[问题描述] 编写递归算法,在二叉树中求位于先序序列中第K个位置的结点 [输入] 按照先序序列的顺序输入该结点的内容。其输入abd eh cf i g 。输入要求的位置 [输出] 若二叉树不空,按先序序列输出,求出所求位置的结点 [存储结构] 采用二叉表存储 [算法的基本思想] 采用递归方法建立和遍历二叉树。首先建立二叉树的根结点,然后建立其左右子树,直到空子树为止,先序遍历二叉树时,先遍厉左子树,后遍厉右子树,最后访问根结点并计算出二叉树中叶子结点的数目和第K个位置的结点 #include<stdio.h> #include<malloc.h> struct node{ char info struct node*llink,*rlink } typedef struct node NODE
上传时间: 2014-01-13
上传用户:zm7516678
关于6502的指令详细介绍!图文并茂,可以g给做6502开发人员很大的帮助
上传时间: 2013-12-15
上传用户:小鹏
xajax is an open source PHP libary for building Web-based Ajax applications. This wiki is a community-edited effort to generate information about and documentation for the xajax project. The base documentation and starter tutorials were written by the xajax authors, but please feel free to contribute to the discussion tabs for each page. Also, you are encouraged to add to the Tips and Tricks section with your own special xajax discoveries.
标签: applications Web-based building communit
上传时间: 2015-11-20
上传用户:2404
ch451 CH451 ?-|I¢…OA¨…(R)à?DIG0÷DIG7£μ÷–““? ?>>μ£ ±‰“??>>μ£°CH451?aefl¥μ£<<?£o…÷”<<0.5 ”¢¥ 2 ”¢μ -|I<<?“? SEG6°SEG0±‘ -|< G° A£ <<?“? SEG7 ‘ -|I– μ£<<?“? DIG7°DIG0± 8 ^ ?-|“ o£CH451“o…£8°8aeyμ¢oLED’£aú64?£¢<CH451a o…“‘O(R)?<<??÷ ?-|I<£¨¥-|÷Sflμ? ?-|
上传时间: 2014-01-04
上传用户:顶得柱
NetTalk是一个适用于局域网和因特网的可视电话软件 一.开发环境 Windows2000 Server & Visual C++6.0 & SDK +自开发的CWndX类库(相当于简化的MFC涉及窗口的部分) 二.支持环境 Windows98/ME/2000/XP 三.所涉及协议和标准 网络传输采用UDP协议,音频压缩采用G.729标准,视频压缩采用H.263标准 四.性能参数 以音频帧为基准,每帧音频数据有240个采样点,时间为240*1000/8000=30ms,8000为音频的采样率。 数据接收端队列缓冲延迟:30*3=90ms 数据发送端录音延迟:30ms 数据压缩解压耗时:<40ms 网络延迟:<100ms(我想校网情况应该不错J) 总延迟:<260ms 根据VOIP标准,总延迟<300ms是人可以接受的,以上计算是保守的,实际情况可能会好得多。
标签: NetTalk Windows Server Visual
上传时间: 2013-12-23
上传用户:yy541071797
siptapi A TAPI driver for SIP. With this TAPI driver you have a click2dial feature with any TAPI enabled application (e.g. MS Outlook) and any SIP account (e.g. freeworlddialup or iptel.org).
标签: TAPI driver click2dial siptapi
上传时间: 2014-01-07
上传用户:jjj0202
This article introduces how to use Visual C++ to develop ActiveX control by example.Then we compile script to insert it into web page.from this ,it displays the strong life of the ActiveX controll in the development of netware.
标签: introduces ActiveX article develop
上传时间: 2015-12-02
上传用户:athjac
为存储磁盘或U盘更换盘符。比如:U盘插在PC机上显示的是F盘,可以被更换成H、G直到Z盘,只要该盘符空闲。
上传时间: 2013-12-13
上传用户:qiao8960
本文专门讲解如何运用这种原始套接字,来模拟I P的一些实用工具,比如Tr a c e r o u t e和P i n g程序等等。使用原始套接字,亦可对I P头信息进行实际的操作。
上传时间: 2013-12-24
上传用户:wqxstar