题目内容

void move(int n,char from,char to){printf("将%d号盘子%c---->%c\n",n,from,to);}void hanoi(int n,char from,char on ,char to){if(n==1)move(1,from,to);else{hanoi(n-1,from,to,on);move(n,from,to);___________________}}

A. hanoi(n-1,to,from,on);
B. hanoi(n-1,from,on,to);
C. hanoi(n-1,on,from,to);
D. hanoi(n-1,on,to,from);

查看答案
更多问题

将F=1+1/2+1/3+1/4+...+1/n转化为递归函数,其递归出口是F(1)=1,递归体是( ).

A. F(n)=1/n
B. F(n)=F(n-1)+1/(n+1)
C. F(n)=F(n-1)+1/n
D. F(n)=F(n-1)+1/(n-1)

请在( )中编写代码实现递归函数倒叙(从后向前)输出单链表内容.void pRight2Left(linklist head){if(head->next){( ____)}}

A. printf("%5d",head->next->data);pRight2Left(head->next);
B. pRight2Left(head->next);printf("%5d",head->next->data);
C. pRight2Left(head);printf("%5d",head->data);
D. printf("%5d",head->data);pRight2Left(head);

在填写大写金额时应紧接“人民币”填写,不得留有空白,未印有“人民币”的,应加填“人民币”。

A. 对
B. 错

1月、2月、10月大写前要加零,11月、12月大写前要加壹,3月~9月大写前的零,可加可不加。

A. 对
B. 错

答案查题题库