二C语言机考试复习资料.pdf_第1页
二C语言机考试复习资料.pdf_第2页
二C语言机考试复习资料.pdf_第3页
二C语言机考试复习资料.pdf_第4页
二C语言机考试复习资料.pdf_第5页
已阅读5页,还剩27页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

容宇教育内部资料 WWW.CSRONGYU.COM 版权所有 翻印必究 1 二级 C 语言上机考试复习资料,共有 50 套题目 一、程序填空题 1、程序通过定义学生结构体变量,存储了学生的学号、姓名和 3 门课的成 绩。函数 fun 的功能是对形参 b 所指结构体变量中的数据进行修改,最后在主函 数中输出修改后的数据。 例如: b 所指变量 t 中的学号、姓名、和三门课的成绩依次是: 10002、 “ZhangQi“、93、85、87,修改后输出 t 中的数据应为:10004、“ LiJie “、93、85、 87。 请在程序的下划线处填入正确的内容并把下划线删除, 使程序得出正确的 结果。 注意:源程序存放在考生文件夹下的 BLANK1.C 中。 不得增行或删行,也不得更改程序的结构! #include #include struct student long sno; char name10; float score3; ; void fun( struct student *b) /*found*/ b_1_ = 10004; /*found*/ strcpy(b_2_, “LiJie“); main() struct student t=10002,“ZhangQi“, 93, 85, 87; int i; printf(“nnThe original data :n“); printf(“nNo: %ld Name: %snScores: “,t.sno, ); for (i=0; i double fun(double e) int i; double s, x; /*found*/ s=0; i=_1_; x=1.0; while(xe) /*found*/ _2_; /*found*/ x=(2.0*i-1)/(_3_)*(2.0*i); s=s+x; return s; main() double e=1e-3; printf(“nThe result is: %fn“,fun(e); 3、给定程序中,函数 fun 的功能是: 将 s 所指字符串中的所有数字字符移 到所有非数字字符之后,并保持数字字符串和非数字字符串原有的先后次序。 例如,形参 s 所指的字符串为:def35adh3kjsdf7。执行结果为:defadhkjsdf3537。 请在程序的下划线处填入正确的内容并把下划线删除,使程序得出正确的 结果。 注意:源程序存放在考生文件夹下的 BLANK1.C 中。 不得增行或删行,也不得更改程序的结构! #include void fun(char *s) int i, j=0, k=0; char t180, t280; for(i=0; si!=0; i+) if(si=0 for(i=1; i void fun(char *s, char *p) int i, j, n, x, t; n=0; for(i=0; si!=0; i+) n+; for(i=1; isj) t=j; if(t!=i) x=si; si=st; st=x; for(i=1,j=0; i #include #define N 8 typedef struct list int data; struct list *next; SLIST; void fun( SLIST *p) SLIST *t, *s; t=p-next; s=p; while(t-next != NULL) s=t; /*found*/ t=t-_1_; /*found*/ printf(“ %d “,_2_); s-next=NULL; /*found*/ free(_3_); SLIST *creatlist(int *a) SLIST *h,*p,*q; int i; h=p=(SLIST *)malloc(sizeof(SLIST); for(i=0; idata=ai; p-next=q; p=q; p-next=0; return h; void outlist(SLIST *h) SLIST *p; p=h-next; if (p=NULL) printf(“nThe list is NULL!n“); else printf(“nHead“); do printf(“-%d“,p-data); p=p-next; while(p!=NULL); printf(“-Endn“); main() SLIST *head; int aN=11,12,15,18,19,22,25,29; head=creatlist(a); printf(“nOutput from head:n“); outlist(head); printf(“nOutput from tail: n“); while (head-next != NULL) fun(head); printf(“nn“); printf(“nOutput from head again :n“); outlist(head); 7、给定程序中,函数 fun 的功能是:计算 NN 矩阵的主对角线元素和反向 对角线元素之和,并作为函数值返回。注意:要求先累加主对角线元素中的值, 然后累加反向对角线元素中的值。例如,若 N=3,有下列矩阵: 1 2 3 4 5 6 7 8 9fun 函数首先累加 1、5、9,然后累加 3、5、7,函数的返 回值为 30。 请在程序的下划线处填入正确的内容并把下划线删除,使程序得出正确的 结果。 注意:源程序存放在考生文件夹下的 BLANK1.C 中。 不得增行或删行,也不得更改程序的结构! #include #define N 4 fun(int tN, int n) int i, sum; /*found*/ _1_; for(i=0; i int fun(int x) int n, s1, s2, s3, t; n=0; t=100; /*found*/ while(t0): “); scanf(“%d“, printf(“nThe result is: %dn“,fun(x); 9、给定程序中,函数 fun 的功能是:将形参 n 所指变量中,各位上为偶数 的数去除,剩余的数按原来从高位到低位的顺序组成一个新的数,并通过形参指 针 n 传回所指变量。 例如,输入一个数:27638496,新的数:为 739。 请在程序的下划线处填入正确的内容并把下划线删除, 使程序得出正确的 结果。 注意:源程序存放在考生文件夹下的 BLANK1.C 中。 不得增行或删行,也不得更改程序的结构! #include void fun(unsigned long *n) unsigned long x=0, i; int t; i=1; while(*n) /*found*/ t=*n % _1_; /*found*/ if(t%2!= _2_) x=x+t*i; i=i*10; *n =*n /10; /*found*/ *n=_3_; main() unsigned long n=-1; while(n99999999|n unsigned long fun(unsigned long n) unsigned long x=0; int t; while(n) t=n%10; /*found*/ if(t%2=_1_) /*found*/ x=_2_+t; /*found*/ n=_3_; return x; main() unsigned long n=-1; while(n99999999|n #define N 9 int fun(int a, int n) int i,j; j = 0; for (i=0; i #include #define M 5 #define N 20 int fun(char (*ss)N, int *n) int i, k=0, len= N; /*found*/ for(i=0; i #include #include void WriteText(FILE *); void ReadText(FILE *); main() FILE *fp; if(fp=fopen(“myfile4.txt“,“w“)=NULL) printf(“ open fail!n“); exit(0); WriteText(fp); 容宇教育内部资料 WWW.CSRONGYU.COM 版权所有 翻印必究 4 fclose(fp); if(fp=fopen(“myfile4.txt“,“r“)=NULL) printf(“ open fail!n“); exit(0); ReadText(fp); fclose(fp); /*found*/ void WriteText(FILE _1_) char str81; printf(“nEnter string with -1 to end :n“); gets(str); while(strcmp(str,“-1“)!=0) /*found*/ fputs(_2_,fw); fputs(“n“,fw); gets(str); void ReadText(FILE *fr) char str81; printf(“nRead file and output to screen :n“); fgets(str,81,fr); while( !feof(fr) ) /*found*/ printf(“%s“,_3_); fgets(str,81,fr); 14、函数 fun 的功能是:将形参 a 所指数组中的前半部分元素中的值和后半 部分元素中的值对换。形参 n 中存放数组中数据的个数,若 n 为奇数,则中间 的元素不动。例如:若 a 所指数组中的数据依次为:1、2、3、4、5、6、7、8、 9,则调换后为:6、7、8、9、5、1、2、3、4。 请在程序的下划线处填入正确的内容并把下划线删除,使程序得出正确的 结果。 注意:源程序存放在考生文件夹下的 BLANK1.C 中。 不得增行或删行,也不得更改程序的结构! #include #define N 9 void fun(int a, int n) int i, t, p; /*found*/ p = (n%2=0)?n/2:n/2+_1_; for (i=0; i #include #define N 5 #define M 10 int fun(char (*ss)M, int k) int i,j=0,len; /*found*/ for(i=0; i double fun(double e) int i, k; double s, t, x; s=0; k=1; i=2; /*found*/ x=_1_/4; /*found*/ while(x _2_ e) s=s+k*x; k=k* (-1); t=2*i; /*found*/ x=_3_/(t*t); i+; return s; main() double e=1e-3; printf(“nThe result is: %fn“,fun(e); 17、给定程序中,函数 fun 的功能是:统计形参 s 所指字符串中数字字符出 现的次数,并存放在形参 t 所指的变量中,最后在主函数中输出。例如,形参 s 所指的字符串为:abcdef35adgh3kjsdf7。输出结果为:4。 请在程序的下划线处填入正确的内容并把下划线删除,使程序得出正确的 结果。 注意:源程序存放在考生文件夹下的 BLANK1.C 中。 不得增行或删行,也不得更改程序的结构! #include void fun(char *s, int *t) int i, n; n=0; /*found*/ for(i=0; _1_ !=0; i+) /*found*/ if(si=0 for (i=0; i_3_) min = aj; pn = j; if (pn != i) t = ai; ai = min; apn = t; if (px = i) px =pn; if (px != i+1) t = ai+1; ai+1 = max; apx = t; main() int bN=9,1,4,2,3,6,5,8,7, i; printf(“nThe original data :n“); for (i=0; i int fun(int x) int n, s1, s2, s3, t; /*found*/ n=_1_; t=100; /*found*/ while(t999|x #define N 4 void fun(int (*t)N, int m) int i, j; /*found*/ for(i=0; i=0; j-) /*found*/ tij+_2_ =tij; /*found*/ for(j=0; j #define N 9 int fun(int a, int n) int i,j; j = 0; for (i=0; i #include #include char *fun(char *s) int i, j, k, n; char *p, *t; n=strlen(s)+1; t=(char*)malloc(n*sizeof(char); p=(char*)malloc(n*sizeof(char); j=0; k=0; for(i=0; i=a) double s, t; /*found*/ s=_1_; /*found*/ for(i=1; i0): “); scanf(“%d“, printf(“nThe result is: %fn“,fun(n); 24、给定程序中,函数 fun 的功能是:把形参 s 所指字符串中下标为奇数的 字符右移到下一个奇数位置,最右边被移出字符串的字符绕回放到第一个奇数 位置,下标为偶数的字符不动(注:字符串的长度大于等于 2) 。例如,形参 s 所指的字符串为:abcdefgh,执行结果为:ahcbedgf。 请在程序的下划线处填入正确的内容并把下划线删除,使程序得出正确的 结果。 注意:源程序存放在考生文件夹下的 BLANK1.C 中。 不得增行或删行,也不得更改程序的结构! *容宇教育内部资料 版权所有 翻印必究 * #include void fun(char *s) int i, n, k; char c; n=0; for(i=0; si!=0; i+) n+; /*found*/ if(n%2=0) k=n-_1_ ; else k=n-2; /*found*/ c=_2_ ; for(i=k-2; i=1; i=i-2) si+2=si; /*found*/ s1=_3_ ; main() char s80=“abcdefgh“; printf(“nThe original string is : %sn“,s); fun(s); printf(“nThe result is : %sn“,s); 25、给定程序中,函数 fun 的功能是:统计出带有头结点的单向链表中结点的 个数,存放在形参 n 所指的存储单元中。 请在程序的下划线处填入正确的内容并把下划线删除,使程序得出正确的 结果。 注意:源程序存放在考生文件夹下的 BLANK1.C 中。 不得增行或删行,也不得更改程序的结构! #include #include #define N 8 typedef struct list int data; struct list *next; SLIST; SLIST *creatlist(int *a); void outlist(SLIST *); void fun( SLIST *h, int *n) SLIST *p; /*found*/ _1_=0; p=h-next; while(p) (*n)+; /*found*/ p=p-_2_; main() SLIST *head; int aN=12,87,45,32,91,16,20,48, num; head=creatlist(a); outlist(head); /*found*/ fun(_3_, printf(“nnumber=%dn“,num); SLIST *creatlist(int a) SLIST *h,*p,*q; int i; h=p=(SLIST *)malloc(sizeof(SLIST); for(i=0; idata=ai; p-next=q; p=q; p-next=0; return h; void outlist(SLIST *h) SLIST *p; p=h-next; if (p=NULL) printf(“The list is NULL!n“); 容宇教育内部资料 WWW.CSRONGYU.COM 版权所有 翻印必究 7 else printf(“nHead “); do printf(“-%d“,p-data); p=p-next; while(p!=NULL); printf(“-Endn“); 26、给定程序中,函数 fun 的功能是:将 NN 矩阵中元素的值按列右移 1 个位置,右边被移出矩阵的元素绕回左边。例如,N=3,有下列矩阵 1 2 3 4 5 6 7 8 9 计算结果为 3 1 2 6 4 5 9 7 8 请在程序的下划线处填入正确的内容并把下划线删除,使程序得出正确的 结果。 注意:源程序存放在考生文件夹下的 BLANK1.C 中。 不得增行或删行,也不得更改程序的结构! #include #define N 4 void fun(int (*t)N) int i, j, x; /*found*/ for(i=0; i=1; j-) tij=tij-1; /*found*/ ti_3_=x; main() int tN=21,12,13,24,25,16,47,38,29,11,32,54,42,21,33,10, i, j; printf(“The original array:n“); for(i=0; i #include #define N 5 #define M 8 int fun(char (*ss)M,char *t) int i; /*found*/ for(i=0; i #include struct student long sno; char name10; float score3; ; /*found*/ _1_ fun(struct student *a) int i; a-sno = 10002; strcpy(a-name, “LiSi“); /*found*/ for (i=0; isno, t-name); for (i=0; iscorei); printf(“n“); 29、给定程序中已建立一个带有头结点的单向链表,链表中的各结点按数 据域递增有序链接。函数 fun 的功能是:删除链表中数据域值相同的结点,使之 只保留一个。 请在程序的下划线处填入正确的内容并把下划线删除,使程序得出正确的 结果。 注意:源程序存放在考生文件夹下的 BLANK1.C 中。 不得增行或删行,也不得更改程序的结构! #include #include #define N 8 typedef struct list int data; struct list *next; SLIST; void fun( SLIST *h) SLIST *p, *q; p=h-next; if (p!=NULL) q=p-next; while(q!=NULL) if (p-data=q-data) p-next=q-next; /*found*/ free(_1_); /*found*/ q=p-_2_; else p=q; 容宇教育内部资料 WWW.CSRONGYU.COM 版权所有 翻印必究 8 /*found*/ q=q-_3_; SLIST *creatlist(int *a) SLIST *h,*p,*q; int i; h=p=(SLIST *)malloc(sizeof(SLIST); for(i=0; idata=ai; p-next=q; p=q; p-next=0; return h; void outlist(SLIST *h) SLIST *p; p=h-next; if (p=NULL) printf(“nThe list is NULL!n“); else printf(“nHead“); do printf(“-%d“,p-data); p=p-next; while(p!=NULL); printf(“-Endn“); main( ) SLIST *head; int aN=1,2,2,3,4,4,4,5; head=creatlist(a); printf(“nThe list before deleting :n“); outlist(head); fun(head); printf(“nThe list after deleting :n“); outlist(head); 30、程序通过定义学生结构体变量,存储了学生的学号、姓名和 3 门课的成 绩。所有学生数据均以二进制方式输出到 student.dat 文件中。函数 fun 的功能是 从指定文件中找出指定学号的学生数据,读入此学生数据,对该生的分数进行 修改,使每门课的分数加 3 分,修改后重写文件中该学生的数据,即用该学生的 新数据覆盖原数据,其它学生数据不变;若找不到,则什么都不做。 请在程序的下划线处填入正确的内容并把下划线删除, 使程序得出正确的 结果。 注意:源程序存放在考生文件夹下的 BLANK1.C 中。 不得增行或删行,也不得更改程序的结构! #include #define N 5 typedef struct student long sno; char name10; float score3; STU; void fun(char *filename, long sno) FILE *fp; STU n; int i; fp = fopen(filename,“rb+“); /*found*/ while (!feof(_1_) fread( /*found*/ if (n.sno_2_sno) break; if (!feof(fp) for (i=0; i void fun(char *s) int i, j, n; for(i=0; si!=0; i+) /*found*/ if(si=0 _1_ sii; j-) /*found*/ sj+1= _3_; sj+1=*; i=i+1; main() char s80=“ba3a54cd23a“; printf(“nThe original string is : %sn“,s); fun(s); printf(“nThe result is : %sn“,s); 32、程序通过定义学生结构体变量,存储了学生的学号、姓名和 3 门课的 成绩。函数 fun 的功能是将形参 a 中的数据进行修改,把修改后的数据作为函数 值返回主函数进行输出。 例如:传给形参 a 的数据中,学号、姓名、和三门课的成绩依次是:10001、 “ZhangSan“、95、80、88,修改后的数据应为:10002、“LiSi“、96、81、89。 请在程序的下划线处填入正确的内容并把下划线删除, 使程序得出正确的 结果。 注意:源程序存放在考生文件夹下的 BLANK1.C 中。 不得增行或删行,也不得更改程序的结构! *容宇教育内部资料 版权所有 翻印必究 * #include #include struct student long sno; char name10; float score3; ; /*found*/ _1_ fun(struct student a) int i; a.sno = 10002; /*found*/ strcpy(_2_, “LiSi“); /*found*/ for (i=0; i double fun(int n) int i, k; double s, t; s=0; /*found*/ k=_1_; for(i=1; i0): “); scanf(“%d“, printf(“nThe result is: %fn“,fun(n); 34、 函数 fun 的功能是进行数字字符转换。 若形参 ch 中是数字字符09, 则 0转换成9,1转换成8,2转换成7,9转换成0;若是其它字符则保持 不变;并将转换后的结果作为函数值返回。 请在程序的下划线处填入正确的内容并把下划线删除,使程序得出正确的 结果。 注意:源程序存放在考生文件夹下的 BLANK1.C 中。 不得增行或删行,也不得更改程序的结构! #include /*found*/ _1_ fun(char ch) /*found*/ if (ch=0 return ch ; main() char c1, c2; printf(“nThe result :n“); c1=2; c2 = fun(c1); printf(“c1=%c c2=%cn“, c1, c2); c1=8; c2 = fun(c1); printf(“c1=%c c2=%cn“, c1, c2); c1=a; c2 = fun(c1); printf(“c1=%c c2=%cn“, c1, c2); 35、给定程序中,函数 fun 的功能是:计算出带有头结点的单向链表中各结 点数据域中值之和作为函数值返回。 请在程序的下划线处填入正确的内容并把下划线删除,使程序得出正确的 结果。 注意:源程序存放在考生文件夹下的 BLANK1.C 中。 不得增行或删行,也不得更改程序的结构! #include #include #define N 8 typedef struct list int data; struct list *next; SLIST; SLIST *creatlist(int *); void outlist(SLIST *); int fun( SLIST *h) SLIST *p; int s=0; p=h-next; while(p) /*found*/ s+= p-_1_; /*found*/ p=p-_2_; return s; main() SLIST *head; int aN=12,87,45,32,91,16,20,48; head=creatlist(a); outlist(head); /*found*/ printf(“nsum=%dn“, fun(_3_); SLIST *creatlist(int a) SLIST *h,*p,*q; int i; h=p=(SLIST *)malloc(sizeof(SLIST); for(i=0; idata=ai; p-next=q; p=q; p-next=0; return h; void outlist(SLIST *h) SLIST *p; p=h-next; if (p=NULL) printf(“The list is NULL!n“); else printf(“nHead “); do printf(“-%d“, p-data); p=p-next; while(p!=NULL); printf(“-Endn“); 36、给定程序中,函数 fun 的功能是:在带有头结点的单向链表中,查找数 据域中值为 ch 的结点。找到后通过函数值返回该结点在链表中所处的顺序号; 若不存在值为 ch 的结点,函数返回 0 值。 请在程序的下划线处填入正确的内容并把下划线删除,使程序得出正确的 结果。 注意:源程序存放在考生文件夹下的 BLANK1.C 中。 不得增行或删行,也不得更改程序的结构! *容宇教育内部资料 版权所有 翻印必究 * #include #include #define N 8 typedef struct list int data; struct list *next; SLIST; SLIST *creatlist(char *); void outlist(SLIST *); int fun( SLIST *h, char ch) SLIST *p; int n=0; p=h-next; /*found*/ while(p!=_1_) n+; 容宇教育内部资料 WWW.CSRONGYU.COM 版权所有 翻印必究 10 /*found*/ if (p-data=ch) return _2_; else p=p-next; return 0; main() SLIST *head; int k; char ch; char aN=m,p,g,a,w,x,r,d; head=creatlist(a); outlist(head); printf(“Enter a letter:“); scanf(“%c“, /*found*/ k=fun(_3_); if (k=0) printf(“nNot found!n“); else printf(“The sequence number is : %dn“,k); SLIST *creatlist(char *a) SLIST *h,*p,*q; int i; h=p=(SLIST *)malloc(sizeof(SLIST); for(i=0; idata=ai; p-next=q; p=q; p-next=0; return h; void outlist(SLIST *h) SLIST *p; p=h-next; if (p=NULL) printf(“nThe list is NULL!n“); else printf(“nHead“); do printf(“-%c“,p-data); p=p-next; while(p!=NULL); printf(“-Endn“); 37、给定程序中已建立一个带有头结点的单向链表,链表中的各结点按结 点数据域中的数据递增有序链接。 函数 fun 的功能是:把形参 x 的值放入一个新 结点并插入到链表中,插入后各结点数据域的值仍保持递增有序。 请在程序的下划线处填入正确的内容并把下划线删除,使程序得出正确的 结果。 注意:源程序存放在考生文件夹下的 BLANK1.C 中。 不得增行或删行,也不得更改程序的结构! #include #include #define N 8 typedef struct list int data; struct list *next; SLIST; void fun( SLIST *h, int x) SLIST *p, *q, *s; s=(SLIST *)malloc(sizeof(SLIST); /*found*/ s-data=_1_; q=h; p=h-next; while(p!=NULL p=p-next; s-next=p; /*found*/ q-next=_3_; SLIST *creatlist(int *a) SLIST *h,*p,*q; int i; h=p=(SLIST *)malloc(sizeof(SLIST); for(i=0; idata=ai; p-next=q; p=q; p-next=0; return h; void outlist(SLIST *h) SLIST *p; p=h-next; if (p=NULL) printf(“nThe list is NULL!n“); else printf(“nHead“); do printf(“-%d“,p-data); p=p-next; while(p!=NULL); printf(“-Endn“); main() SLIST *head; int x; int aN=11,12,15,18,19,22,25,29; head=creatlist(a); printf(“nThe list before inserting:n“); outlist(head); printf(“nEnter a number : “); scanf(“%d“, fun(head,x); printf(“nThe list after inserting:n“); outlist(head); 38、 给定程序的功能是调用 fun 函数建立班级通讯录。 通讯录中记录每位学 生的编号、姓名和电话号码。班级的人数和学生的信息从键盘读入,每个人的信 息作为一个数据块写到名为 myfile5.dat 的二进制文件中。 请在程序的下划线处填入正确的内容并把下划线删除,使程序得出正确的 结果。 注意:源程序存放在考生文件夹下的 BLANK1.C 中。 不得增行或删行,也不得更改程序的结构! #include #include #define N 5 typedef struct int num; char name10; char tel10; STYPE; void check(); /*found*/ int fun(_1_ *std) /*found*/ _2_ *fp; int i; if(fp=fopen(“myfile5.dat“,“wb“)=NULL) return(0); printf(“nOutput data to file !n“); for(i=0; i #define N 4 void fun(int (*t)N) int j ,rN; for(j=0; j=0;_2_ ) tN-1N-1-j=tjN-1; for(j=N-1; j=0; j-) /*found*/ tjN-1=r_3_; main() int tN=21,12,13,24,25,16,47,38,29,11,32,54,42,21,33,10, i, j; printf(“nThe original array:n“); for(i=0; i #define N 4 /*found*/ void fun(int _1_ , int n) int i,s; /*found*/ for(_2_; i+) s=tii; tii=tin-i-1; /*found*/ tin-1-i=_3_; main() int tN=21,12,13,24,25,16,47,38,29,11,32,54,42,21,33,10, i, j; printf(“nThe original array:n“); for(i=0; i void fun(char *s, char c) int i, j, n; /*found*/ for(i=0; si!=_1_ ; i+) if(si=c) /*found*/ n=_2_ ; while(si+1+n!=0) n+; for(j=i+n+1; ji; j-) sj+1=sj; /*found*/ sj+1=_3_ ; i=i+1; main() char s80=“baacda“, c; printf(“nThe string: %sn“,s); printf(“nInput a character: “); scanf(“%c“, fun(s,c); printf(“nThe result is: %sn“,s); 42、程序通过定义学生结构体变量,存储了学生的学号、姓名和 3 门课的 成绩。 函数 fun 的功能是将形参 a 所指结构体变量中的数据赋给函数中的结构体 变量 b,并修改 b 中的学号和姓名,最后输出修改后的数据。例如:a 所指变量 中的学号、姓名、和三门课的成绩依次是:10001、“ZhangSan“、95、80、88, 则修改后输出 b 中的数据应为:10002、“LiSi“、95、80、88。 请在程序的下划线处填入正确的内容并把下划线删除, 使程序得出正确的 结果。 注意:源程序存放在考生文件夹下的 BLANK1.C 中。 不得增行或删行,也不得更改程序的结构! #include #include struct student lon

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论