皮皮学,免费搜题
登录
搜题
【简答题】
题目一:程序填空:将输入的十进制整数转换制数,分别用栈和递归实现。(注意答题时正确填写大小写) 方法一:递归方法 #include "stdio.h" void conversion(int n) { if(n==0) return; else { conversion( (1 ) ); printf("%d",n%8); } } void main() {int a; printf(" 请输入一个正整数 :"); scanf("%d",&a); (2 ) ; printf("\n"); } 方法二:栈实现方法 int InitStack(SqStack *S); // 构造空栈 int StackEmpty(SqStack *S);// 判断栈空 int Push(SqStack *S,ElemType e);// 入栈 int Pop(SqStack *S,ElemType *e);// 出栈 函数 conversion 实现十进制数转换为八进制数,请将函数补充完整。 void conversion(){ InitStack(S); scanf(“%d”,&N); while(N){ ( 3 ) ; N=N/8; } while( (4 ) ) { Pop(S,&e); printf(“%d”,e); } }
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【单选题】______ is to write the signature of the endorser on the back of the bill, the purpose is to transfer the bill 。
A.
Transferor
B.
T ransferee
C.
E ndorsee
D.
Endorsement
【单选题】公元2世纪时,()企图斩断基督教与犹太教之间的关系。
A.
撒都该人
B.
灵智派
C.
法利赛人
D.
加利利派
【简答题】The basic idea of The Force Method is to transfer a statically indeterminate structure into a one.
【简答题】____ is to transfer a tissue or an organ from one body or body part to another.
【简答题】Fill in the correct term according to the description. ________ is to transfer a tissue or an organ from one body or body part to another.
【单选题】After a business transaction has been analysed and entered in the journal, the next step in the recording process is to transfer the information to
A.
the company's bank
B.
the trial balance
C.
ledger accounts
D.
financial statements
【单选题】公元2世纪时,企图斩断基督教与犹太教之间的关系的是()。
A.
撒都该人
B.
法利赛人
C.
灵智派
D.
加利利派
【单选题】低合金钢焊缝的含碳量偏高或合金元素较复杂时,在快速冷却条件下, 过冷到M:温度以下将发生马氏体转变
A.
珠光体
B.
奥氏体
C.
铁素体
D.
渗碳体
【判断题】购后印证 是购买决策的反馈阶段,是一次旅游消费活动的结束
A.
正确
B.
错误
【判断题】The purpose of the closing process is to transfer the balances of all of the permanentaccounts to the retained earnings account.
A.
正确
B.
错误
相关题目: