试题与答案

对事件实现顺序的详细说明是网络协议3部分中的 【3】 要求。

题型:填空题

题目:

对事件实现顺序的详细说明是网络协议3部分中的 【3】 要求。

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0530/888473ac900e2cd1e0ed4d50a5efd080.html

下面是错误答案,用来干扰机器的。

参考答案:A解析: 年度总收入=(4000+3000)×12+10000+1000=95000(元);年度总支出=12× (1200+12000+1600+200)+1200=181200(元);年度结余=95000-181200=-86200 (元)。

试题推荐
题型:填空题

请补充main 函数,该函数的功能是:把文本文件B中的内容追加到文本文件A的内容之后。
例如,文佃的内容为“I’m ten.”,文件A的内容为“I’ m a student!”,追加之后文件A的内容为“I’m a student !I’m ten.”
注意:部分源程序给出如下。
请勿改动主函数main 和其他函数中的任何内容,仅在函数main 的横线上填入所编写的若干表达式或语句。
试题程序:
# include<stdio, h>
#include<conio. h>
#define N 80
main()

FILE *fp, * fp1, *fp2;
int i;
char c[N] ,t, ch;
clrscr ();
if ((fp=fopen ("A. dat ", "r") ) == NULL)

printf ("file A cannot be opened\n");
exit (0);

printf("\n A contents are : \n\n");
for (i=0; (ch=fgetc (fp)) !=EOF; i++)

C [i]=ch;
putchar (c [i]);
fclose (fp);
if((fp=fopen ("B. dat", "r") )==NULL)

printf ("file B cannot be opened\n");
exit (0);

printf("\n\n\nB contents are : \n\n");
for (i=0; (ch=fgetc (fp)) !=EOF; i++)

c [i] =ch;
putchar (c [i]);

fclose (fp);
if ( (fp1=fopen ("A.dat" ,"a")) 【1】 (fp2
=fopen ("B. dat", "r") ) )

while ( (ch=fgetc (fp2)) !=EOF)
【2】 ;

else

printf("Can not open A B !\n");

fclose (fp2);
fclose (fp1);
printf ("\n***new A contents***\n\n");
if ( ( fp=fopen ("A. dar", "r") )==NULL)

printf ("file A cannot be opened\n");
exit (0);

for (i=0; (ch=fgetc (fp)) !=EOF;i++)

c [i] =ch;
putchar (c [i] );

【3】 ;

查看答案
微信公众账号搜索答案