皮皮学,免费搜题
登录
搜题
【简答题】
str是一个由数字和字母字符组成的字符串,由变量num传入字符串长度。请补充函数proc,该函数的功能是:把字符串str中的数字字符转换成数字并存放到整型数组bb中,函数返回数组bb的长度。 例如,str="abc3de987f9621",结果为:3987621。 注意:部分源程序给出如下。 请勿改动main函数和其他函数中的任何内容,仅在函数proc的横线上填入所编写的若干表达式或语句。 试题程序: include define M 80 int bb[M]; int proc(char str[],int bb[],int num) { int i,n=0; for(i=0;i { if(【1】) { bb[n]=【2】: n++: } } return 【3】 ; } void main { char str[M]; int mum=0,n,i; printf("Enter a strin9:\n"); gets(str); while(str[num]) num++: n=proc(str,bb,num); printf("\nbb="); for(i=0;i printf("%d",bb[i]); }
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【单选题】价值型股票基金与成长型股票基金相比( )。
A.
投资风险低
B.
投资风险较高
C.
投资风险无法比较
D.
投资风险一样
【单选题】关于声音下列说法正确的是(  )
A.
只要物体在振动都能发出声音,让我们听到
B.
一切正在发声的物体都在振动
C.
声音能在真空中传播且传播速度最快
D.
动听的音乐永远不会是噪音
【单选题】关于声音下列说法中正确的是
A.
. 物体的振幅越大,发出声音的频率越大
B.
. 声音在太空中传播的速度是340m/s
C.
. 街头安装的噪声监测仪可以减弱噪声
D.
. 超声波、次声波是人耳听不到的声音
【单选题】The steam engine opened the mechanical age, and it reached its peak with the discovery of nuclear fission and nuclear fusion, which______the energy producing processes of a star.
A.
repeated
B.
substituted
C.
imitated
D.
explained
【简答题】应用信息技术,企业规模不变的情况下,代理成本会( )。 A变大 B减小 C不变 D不确定
【单选题】价值型股票基金与成长型股票基金相比()。
A.
投资风险无法比较
B.
投资风险一样
C.
投资风险较低
D.
投资风险较高
【单选题】Shakespeare belonged to the ___ period.
A.
Revolution
B.
Restoration
C.
Renaissance
D.
Romantic
【简答题】The Compass The great sea voyages of Europe's “Age of Discovery”, such as Christopher Columbus’s trip to the West Indies in 1492, would have been impossible without the use of a compass. This great de...
【单选题】关于声音 ,下列说法正确的是 ( )
A.
听到声音就一定有振动
B.
有振动就一定能够听到声音
C.
声音越大传播速度越快
D.
真空也能够传播声音
【判断题】The age of exploration beginning in the late 1500s was an important era in the discovery and development of land yet unknown to Europeans.
A.
正确
B.
错误
相关题目: