题目内容

从以下备选答案内为程序中(3)~(7)处空缺选择正确答案。(3)A.request B.response C.application D.session(4)A.rs.eof B.rs.bof C.notrs.eof D.notrs.bof(5)A.i+1 B.rs.recordnumber C.rs.recordcount D.i(6)A.<table name="message" cols="40" rows="5" id="message"></table> B.<textarea name="message" cols="40" rows="5" id="message"></textarea> C.<input name="message" cols="40"rows="5" id="message"></input> D.<IMG nClick=over(this)title=放大name="message"cols="40"rows="5"id="message"></IMG nClick=over(this)title=放大>(7)A.submit B.text C.post D.radio

查看答案
更多问题

阅读以下说明,回答问题1至问题4。
【说明】
某公司网络结构如图1-1所示。其中网管中心位于A楼,B楼与A楼距离约300米, B楼的某一层路由器采用NAT技术进行网络地址变换,其他层仅标出了楼层交换机。
从表1-1中为图1-1中(1)~(4)处选择合适设备名称(每个设备限选一次)。

要求管理员在网络中任何位置都能通过在MailSrv上开放的默认Telnet端口登录 MailSrv,实现对MailSrv的配置。因此,需要在防火墙中添加如表4-4的规则(*代表 P1、P2、P3中的任意一个或几个):
(7)A.TCP B.UDP C.TLS D.ICMP
(8)A.<1023 B.>1023 C.<1024 D.>1024
(9)A.21 B.23 C.25 D.27
(10)A.0 B.1 C.0或1
(11)A.0 B.1 C.0或1

For this part, you are allowed 30 minutes to write a short essay entitled Why I Came to College. You should write at least 150 words following the outline given below.
1. 我为什么选择读大学;
2. 现在读大学是否值得;
3. 结论。

函数ReadDat()实现从文件in.dar中读取20行数据存放到字符串数组xx中(每行字符串长度均小于80)。请编制函数jsSort(),其函数的功能是:以行为单位对字符串按给定的条件进行排序,排序后的结果仍按行重新存入字符串数组xx中,最后调用函数WriteDat()把结果xx输出到文件out.dat中。
条件:从字符串中间一分为二,左边部分按字符的ASCII值降序排序,排序后左边部分与右边部分进行交换。如果原字符串长度为奇数,则最中间的字符不参加处理,字符仍放在原位置上。
例如:位置 0 1 2 3 4 5 6 7 8
源字符串 a b c d h g f e
1 2 3 4 9 8 7 6 5
则处理后字符串 h g f e d c b a
8 7 6 5 9 4 3 2 1
部分源程序已经给出。
请勿改动主函数main()、读数据函数ReadDat()和输出数据函数WriteDat()的内容。
include <stdio.h>
include <string.h>
include <conio.h>
char xx[20][80];
void jsSort()
{
}
void main()
{
ReadDat();
jsSort();
WriteDat();
}
ReadDat()
{
FILE *in;
int i=0;
char *p;
in=fopen("in.dat","r");
while(i<20&&fgets(xx[i],80,in)!=NULL)
{
p=strchr(xx[i],'In');
if(p)*p=0;
i++;
}
fclose(in);
}
WriteDat()
{
FILE *out;
int i;
clrscr();
ut=fopen("out.dar","w");
for(i=0;i<20;i++)
{
printf("%s\n",xx[i]);
fprintf(out,"%s\n",xx[i]);
}
fclose(out);
}

答案查题题库