首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
阅读以下说明和C语言函数,将应填入(n)处的字句写在对应栏内。 [说明] 完成以下中序线索化二叉树的算法。 [函数] Typedef int datatype; Typedef struct node { Int ltag
阅读以下说明和C语言函数,将应填入(n)处的字句写在对应栏内。 [说明] 完成以下中序线索化二叉树的算法。 [函数] Typedef int datatype; Typedef struct node { Int ltag
admin
2009-02-15
35
问题
阅读以下说明和C语言函数,将应填入(n)处的字句写在对应栏内。
[说明]
完成以下中序线索化二叉树的算法。
[函数]
Typedef int datatype;
Typedef struct node {
Int ltag, rtag;
Datatype data;
*lchild,* rchild;
}bithptr;
bithptr pre;
void inthread ( p );
{if
{inthread ( p->lchild );
if ( p->lchild==unll ) (1);
if ( P->RCHILD=NULL) p->rtag=1;
if (2)
{if (3) pre->rchild=p;
if ( p->1tag==1 )(4);
}
INTHREAD ( P->RCHILD );
(5);
}
}
选项
答案
(1) P->LTAG=0 (2) (PRE) (3) (PRE->RTAG==1) (4) P->LCHILD=PRE (5) PRE=P
解析
转载请注明原文地址:https://jikaoti.com/ti/CTW7FFFM
本试题收录于:
程序员下午应用技术考试题库软考初级分类
0
程序员下午应用技术考试
软考初级
相关试题推荐
在Excel工作表中,已输入的数据如下所示:按回车键后,B6单元格显示的值为()。
在Access中使用带参数查询时,表达式中的关键字Like表明是一种模糊查询,其后可带有两种通配符,(65)就是其中的一种。
某一个PPT文档共有8张幻灯片,现选中第4张幻灯片,改变幻灯片背景设置后,单击“应用”按钮,则______。
计算机处理的数字数据有数值数据和字符数据之分。对信息处理技术员来说,它们的主要区别是______。
抽样调查是收集数据的重要方法之一。抽样调查所遵循的原则不包括______。
西部某省考试机构工作人员统计了去年下半年三个地区四种资格的报考人数,将统计表抄录如下(其中有一个数据抄错了): 信息处理技术员小王很快就找出了错误的数据,并进行了纠正。错误的数据是(32),该数据应纠正为(33)。33.
(1)是固化在主板ROM内的程序,为计算机提供最底层、最直接的硬件访问和控制。
计算机使用一段时间后发现,系统启动时间变长,系统响应迟钝,应用程序运行缓慢,为此,需要进行系统优化。系统优化工作不包括___________。
某大型企业下属每个事业部都自行建立了信息系统,各自存储数据,各自配备了技术人员维护系统。由于数据格式不同,难以交流,各系统难以连接,形成了一个个信息孤岛,业务难以协同。为此,公司采取了以下一些整合措施,其中(70)并不恰当。
以下定性的分类变量中,(9)属于有序变量(能排序)。
随机试题
交易磋商程序中必不可少的两个法律环节是()。
下列财产中应当归国家所有的是()。A.失散的饲养动物B.遗失物C.所有人不明的埋藏物、隐藏物D.漂流物
A.生长激素B.糖皮质激素C.肾上腺素D.甲状腺激素影响神经系统发育最重要的激素是
有关腕骨和手关节的叙述,错误的是
我国妇女最常见的骨盆类型是
在融资租赁形式下,租人固定资产产生的租赁费用作为当期的费用处理。()
所得税费用的简便计算方法是怎样得到的?
某上市公司因减资原因按每股15元回购本公司股票300万股,该股票为溢价发行,发行价格每股4元(假定不考虑发行手续费)。回购时,公司股本为50000万股,每股面值1元,资本公积为1200万元,盈余公积为7500万元。回购后,该公司的盈余公积为()万元
【2013下】李老师设计了一个“三只蝴蝶”的游戏活动。她选了三名幼儿扮演蝴蝶,又选了若干名幼儿扮演花朵。结果幼儿兴趣不高,表现被动,还没等游戏结束,一个幼儿就问李老师:“老师,游戏完了吗?我们可以自己玩了吧。”针对这种现象,请从幼儿游戏特征和游戏
OnSunday,JimwentwithhisfarthertochooseaChristmastree.Theyputitinthemiddleofthesittingroom.
最新回复
(
0
)