听下面一段对话,回答第14至第17题。
听下面一段对话,回答第14至第17题。
M: Hi, mom.
W: There you are. I’m getting worried. It’s so late.
M: Yes. I ran into Linda and we went to a pub. She told me a funny thing.
W: Oh What was that
M: Well, she was driving home after work, and she suddenly saw an old lady on her hands and knees in the middle of the road.
W: Really
M: Yes, Linda was so shocked that she stopped suddenly and the car behind crashed into hers.
W: Was she hurt
M: No.
W: And what was the old lady doing
M: I am just coming to that. So Linda got out of her car and saw the old lady pick up something and walk away.
W: Lucky indeed. Linda didn’t run her over.
M: Then a policeman came. But he didn’t believe what Linda said.
W: Well ...
M: Luckily there was a witness, a man waiting for a bus. He saw it all. Guess what the old lady was doingA. Seeking passers-by’s help.
B. Trying to stand up.
C. Looking for something.
D. Calling the police.
变量名 | 含 义 |
intpart | 字符串转化为浮点数后的整数部分 |
doublepart | 字符串转化为浮点数后的小数部分 |
kdouble | 记录小数部分的阶次 |
resoult | 字符串转化为浮点数后的
[填空题]下面一段程序的功能是,单击命令按钮后将D盘temp 目录下的staff.txt 文件内容读出,并在文本框Text1中显示出来。请填空。
Private Sub Command1_ Click( )
Dim Line As String, FileNo As Integer
Dim People As String
FileNo = FreeFile
Open "D:/temp/staff.txt" For Input As ______
DO While Not ______
Line Input #FileNo, Line
People = People + Line + Chr(13) + Chr(10)
Loop
Text1.Text = People
End Sub
[填空题]以下函数sstrcat( )的功能是实现字符串的连接,即将t所指字符串复制到s所指字符串的尾部。例如:s所指字符串为abcd,t所指字符串为efgh,函数调用后s所指字符串为abcdefgh。请填空。
#include <string.h>
void sstrcat(char *s,char *t)
{int n;
n=strlen(s);
while(*(s+n)=【 】{s++;t++;}
}
[填空题]以下函数sstrcat的功能是实现字符串的连接,即将t所指字符串复制到s所指字符串的尾部。例如:,所指字符串为abed,t所指字符串为efgh,调用函数sstrcat后s所指字符串为 abcdefgh。请填空。
#inehde <stdio.h> #include <string.h> void sstuat(char * 9,char *t) int n; n = strlen (s); while(*(s+n) = )s++; t++; 我来回答: 提交
|