A【S1】svstem can be made up of many different functional activities,some of which are descr
【S1】
A.management
B.logistics
C.information
D.shipping
【S1】
A.management
B.logistics
C.information
D.shipping
以下程序的输出结果是______
# include
main()
{char *s1,*s2,m;
s1=s2=(char*)malloc(sizeof(char));
*s1=15;
*s2=20;
m=*s1+*s2;
printf(“%d\n”,m);
}
以下程序的输出结果是()。
include<stdlib.h>
main()
{char*s1,*s2,m;
s1=s2=(char*)malloc(sizeof(char));
*s1=15;
*s2=20;
m=*s1+*s2:
printf("%d\n",m);
}
【S1】
A.calls
B.metrics
C.1inks
D.destinations
【S1】
A.Confirmed credit
B.Payment credit
C.Negotiation credit
D.Acceptance credit
A.Basican
B.BasicFortran
C.Basic
D.FortranBasic
有以下程序: #include <iostream> using namespace std; class sample { private: int n; public: sample(){} sample (int m) { n=m; } sample add(sample s1,sample s2) { this->n=s1.n+s2.n; return (*this); } void disp() { cout<<"n="<<n<<end1; } }; int main () { sample s1(10) ,s2(5),s3; s3.add(s1,s2); s3.disp(); return 0; } 程序运行后,输出的结果是()。
A.n=10
B.n=5
C.n=20
D.n=15
A.>
B.<
C.=
D.≤
执行以下程序后,test.txt文件的内容是(若文件能正常打开) ()。#include <stdio.h>#include <stdlib.h>main(){ FILE * fp; char * s1 = "Fortran" , * s2 = "Basic"; if((fp = fopen("test. txt" ," wb" )) = = NULL) { prinff("Can't open test. txt file \n"); exit(1); } fwrite(s1 ,7,1 ,fp); /* 把从地址s1开始到7个字符写到fp所指文件中*/ fseek(fp,OL,SEEK_SET); /*文件位置指针移到文件开头*/ fwrite (s2,5,1,fp); felose (fp);}
A.Basiean
B.BasieFortran
C.Basic
D.FortranBasie
执行以下程序后, test.txt 文件的内容是 (若文件能正常打开 )
#include <stdio.h>
main()
{ FILE *fp;
char *s1="Fortran",*s2="Basic";
if((fp=fopen("test.txt","wb ” ))==NULL)
{ printf("Can't open test.txt file\n");exit(1);}
fwrite(s1,7,1,fp); /* 把从地址 s1 开始的 7 个字符写到 fp 所指文件中 */
fseek(fp,0L,SEEK_SET); /* 文件位置指针移到文件开头 */
fwrite(s2,5,1,fp);
fclose(fp);
}
A)Basican
B)BasicFortran
C)Basic
D)FortranBasic