皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
下列给定,函数fun()的功能是:删除字符串s中所有空白字符(包括Tab字符、回车换行符)。输入字符串时用’’结束输入。 请改正的错误,使它能得出正确的结果。 注意:不要改动main函数,不得增行或删行,也不得更改程序的结构. 试题程序: include <string.h> include <stdio.h> include <ctype.h> fun(char *p) { int !i, t; char c[80]; for(i=0,t=0;p[i];i++) if(!isspace(*(p+i))) c[t++]=p[i]; /**********************************/ c[t]='/0'; strcpy(p,c); } main() {char c,s[80]; int i=0; printf('Input a string: '); c=getchar(); while(c!='') ( s[i]=c;i++;c=getchar();} s[i]='/0'; fun(s); puts(s); }
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】听力原文:W: Dave told me he had had 10 papers published this year. Is that true? M: You have to take what Dave says with a grain of salt. Q: What does the man imply? (15)
A.
The woman shouldn't believe everything Dave tells her.
B.
The woman shouldn't let Dave get the best of her.
C.
Dave is not serious with the woman.
D.
Dave is always true to his words.
【简答题】固定资产明细账不必每年更换,可以连续使用。 ( )
【判断题】年终结账后,总账和日记账应当更换新账,明细账一般也应更换;但有些明细账,如原材料明细账,固定资产明细账可以连续使用,不必每年更换。
A.
正确
B.
错误
【单选题】Unit 4 Part II Section B Task 3 10. Listen to the speech about creativity. Q: What is TRUE about creativity?
A.
It takes more time to learn something new.
B.
It's not easy to do things in a different way.
C.
It's harder to find a solution to a problem.
D.
It frees the mind.
【简答题】固定资产明细账不必每年更换,可以连续使用。( )
【单选题】有关散货船舱内水位探测系统,下列描述不正确的是:
A.
视觉报警器应能将每一货舱中探测到的两种不同的水位明显区分开
B.
对用作水压载的货舱,可安装一个报警越控设备
C.
由两个独立的电源供电,并有故障报警指示
D.
听觉和视觉警报器应安装在机舱集控室
【简答题】A. what are you preparing B. I'm giving a presentation on the new account. C. 'Do you mean D. is scheduled for 10 o'clock E. just studying for history class F. what are you doing G. that's not true H....
【判断题】年终结账后,总账和日记账应当更换新账,明细账一般也要更换;但有些明细账,如材料明细账、固定资产明细账可以连续使用,不必每年更换。( )
A.
正确
B.
错误
【判断题】年终结账后,总账和日记账应当更换新账,明细账一般也应更换;但有些明细账,如原材料明细账,固定资产明细账可以连续使用,不必每年更换。
A.
正确
B.
错误
【单选题】p H 玻璃电极在使用前应( )。
A.
、在水中浸泡24小时以上;
B.
、在酒精中浸泡24小时以上;
C.
、在氢氧化钠溶液中浸泡24小时以上;
D.
、不必浸泡
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题