皮皮学,免费搜题
登录
搜题
【简答题】
请补充 main 函数,该函数的功能是:从一个字符串中截取前面若干个给定长度的子字符串。 其中, str1 指向原字符串,截取后的字符存放在 str2 所指的字符数组中, n 中存放需截取的字符个数。 例如:当 str1= “ cdefghij ”,然后输入 4 ,则 str2= “ cdef ”。 请勿改动主函数 main 和其他函数中的任何内容,仅在 main 函数的横线上填入所编写的若干表达式或语句,并将横线去掉,同时确保答案与前后字符之间至少保留一个空格。 #include #define LEN 80 main() { char str1[LEN],str2[LEN]; int n,i; printf("Enter the string:\n"); gets(str1); printf("Enter the position of the string deleted:"); scanf( ______ ); for(i=0;i ______ str2[i]='\0'; printf("The new string is:%s\n", ______ ); }
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【简答题】小陈的父亲是小黄的舅父,小陈和小黄要求登记结婚。婚姻登记机关认为( )
【多选题】属于仓储作业人力工种的有:
A.
设备操作
B.
辅助设备作业
C.
打码作业
D.
人力装卸搬运作业
【判断题】“在速卖通平台规则中,如果《基本规则》与《招商规则》内容有冲突的,则以《基本规则》为准。”判断引号中的文字表述是否正确:
A.
正确
B.
错误
【单选题】( )是我国最深、最大的海,也是仅次于珊瑚海 (澳大利亚) 和阿拉伯海 (印度和非洲) 的世界第三大陆缘海。
A.
东海
B.
南海
C.
北海
D.
黄海
【单选题】Among the total deaths caused by TB in the Western Pacific region, how many per cent do the deaths in China account for?
A.
Over 50%.
B.
Under 50%.
C.
About 38%.
D.
Approximately 33%.
【单选题】How many questions are there in total in the test?
A.
10
B.
20
C.
30
D.
40
【单选题】How many total reports does the woman want?
A.
20
B.
100
C.
120
D.
200
【单选题】How many countries will be in the list of 'Super Aged' nations in total in five years?
A.
3.
B.
6.
C.
9.
D.
34.
【单选题】小陈的父亲是小黄的舅父。小陈和小黄要求登记结婚。婚姻登记机关认为()。
A.
他们是两代以内的旁系血亲,不能结婚
B.
他们是三代以内的旁系血亲,不能结婚
C.
他们是四代以内的旁系血亲,不能结婚
D.
他们是两代以内的直系血亲,不能结婚
【单选题】How many words in total are there?
A.
815
B.
811
C.
911
D.
915
相关题目: