计算机类
公务员类
工程类
语言类
金融会计类
计算机类
医学类
研究生类
专业技术资格
职业技能资格
学历类
党建思政类
计算机等级考试(NCRE)
全国计算机应用水平考试(NIT)
计算机软件水平考试
计算机等级考试(NCRE)
全国高校计算机等级考试CCT
行业认证
信息素养
计算机等级考试二级
计算机等级考试一级
网络工程师(计算机等级考试四级)
计算机等级考试二级
数据库工程师(计算机等级考试四级)
计算机等级考试三级
信息安全工程师(计算机等级考试四级)
嵌入式系统开发工程师(计算机等级考试四级)
软件测试工程师(计算机等级考试四级)
C语言程序设计
Python语言程序设计
WPS Office高级应用与设计
C语言程序设计
C++语言程序设计
Java语言程序设计
Visual Basic语言程序设计
Web程序设计
Access数据库程序设计
MySQL数据库程序设计
Visual FoxPro数据库程序设计
办公软件高级应用
填空题下面的程序实现字符串的复制。 void copy_string(from,to) 【14】 ; for(;*from;from++,to++) *to=*from; 【15】 ; main() char *a="I am wang",*b="you are Li"; printf ("%s/n%s/n",a,b); 【16】 ; printf("%s/n%s/n/n",a,b);
进入题库练习
填空题请补充函数fun(),该函数的功能是:按行统计N×N维矩阵元素中的最大值(均为整数),并把这些值按从小到大的顺序保存在数组b中。矩阵的维数在主函数中输入,并赋予随机数。 注意:部分源程序给出如下。 请勿改动主函数main和其他函数中的任何内容,仅在函数fun的横线上填入所编写的若干表达式或语句。 试题程序: #include<stdio.h> #include<conio.h> #include<stdlib.h> #define N 20 void fun( 【1】 ) int i j; int t; for(i=0;i<n;i++) for(j=0;j<n;j++) if( 【2】 ) b[i]=a[i][j]; for(i=0;i<n;i++) for(j=0;i<n;j++) if( 【3】 ) t=b[i]; b[i]=b[j]; b[j]=t; main() int a[N][N]; int b[N]; int n; int i,j; clrscr(); printf("*****Input the dimension of array N*****/n"); scanf("%d",&n); printf("*****The array *****/n"); for(i=0;i<n;i++) for(j=0;i<n;j++) a[i][j]=rand()%20; while(a[i][j]==0) a[i][j]=rand()%30; printf("%4d",a[i][j]); printf("/n/n"); for(i=0;i<n;i++) b[i]=0; fun(a,b,n); printf("***** THE RESULT *****/n"); for(i=0;i<n;i++) printf("%d",b[i]);
进入题库练习
填空题请补充函数proc(),该函数的功能是:把一个字符串中的数字字符按从大到小的顺序排序,并把这个全部由数字组成的字符串保存在原串中,函数返回数字字符串的长度。例如,若输入字符串为“abc123def”,如果为321,字符串长度为3。 注意:部分源程序给出如下。 请勿改动main()函数和其他函数中的任何内容,仅在函数proc()的横线上填入所编写的若干表达式或语句。 试题程序: #include<stdlib.h> #include<stdio.h> #define M 20 int proc(char *str) { int i=0, j=0, k=0, m=0; char t; char *p=str; while(*p) { if(*p>="0" p++; } *(str+i)="/0"; ______; while(*(p+j)) { k=j; ______; while(*(p+k)) { if(*(p+k)>*(str+m)) { t=*(str+m); *(str+m)=*(p+k); *(p+k)=t; } k++; } j++; } return i; } void main() { char str[81]; int n; system("CLS"); printf("Input the original string"); gets(str); printf("***The original string***/n"); puts(str); printf("***The new string***/n"); n=proc(str); puts(str); printf("***The length of new string is: %d***/n", n); }
进入题库练习
填空题以下程序运行后的输出结果是{{U}} 【5】 {{/U}}。 int a=5; fun(int b) { static int a=10; a+=b++; printf("%d",a); } main() { int c=20; fun(c); a+=c++; printf("%d/n",a); }
进入题库练习
填空题以下程序是求矩阵a,b的和,结果存入矩阵c中,并按矩阵形式输出,请填空。 #include<stdio.h> main() int a[3][4]=13,-2,7,5,1,0,4,-3,6,8,0,2; int b[3][4]=-2,0,1,4,5,-1,7,6,6,8,0,2; int i,j,c[3][4]; for(i=0;i<3;i++) for(j=0;j<4;j++) c[i][j]= 【18】 ; for(i=0;i<3;i++) for(j=0;j<4;j++) printf("%3d",c[i][j]); printf("/n");
进入题库练习
填空题以下程序运行后的输出结果是 【12】 。 #include <stdio.h> main( ) int x=1,y=0,a=0,b=0; switch ( x ) case 1:switch(y) case 0:a ++; break; case 1 :b ++; break; case 2:a ++ ;b +*; break; printf("%d %d/n",a,b);
进入题库练习
填空题有以下程序; int a=2; int f(int *A) {return(*A) ++;} main() { int s=0; { int a=5; s+=f(&A) } s+=f(&A) printf("%d/n",s) } 执行后的输出结果是{{U}} 【8】 {{/U}}。
进入题库练习
填空题下述函数统计字符串中的单词个数,单词是指处在空格之间的字符序列,请填空。 int word(char*s) int num=0,flag=0; while(*s) if({{U}} {{/U}}=") flag=0; else if{{U}} {{/U}}flag=1;num++ return{{U}} {{/U}};
进入题库练习
填空题下列程序的输出结果是 【6】 。 main() int a=1,b=2; a=a+b;b=a-b;a=a-b; prrintf("%d,%d/n",a,b) ;
进入题库练习
填空题在进行模块测试时,要为每个被测试的模块另外设计两类模块:驱动模块和承接模块(桩模块)。其中{{U}} 【4】 {{/U}}的作用是将测试数据传送给被测试的模块,并显示被测试模块所产生的结果。
进入题库练习
填空题请补充函数proc(),该函数的功能是:把从主函数中输入的字符串str2接在字符串str1的后面。 例如,str1="I am a",str2="student",结果输出:I am a student。 注意:部分源程序给出如下。 请勿改动main()函数和其他函数中的任何内容,仅在函数proc()的横线上填入所编写的若干表达式或语句。 试题程序: #include<stdlib.h> #include<stdio.h> #include<conio.h> #define M 40 void proc(char*str1,char*str2) { int i=0; char*p1=str1; char*p2=str2; while(______) i++; for(;______;i++) *(p1+i)=______; *(p1+i)="/0"; } void main() { char str1[M],str2[M]; system("CLS"); printf("****Input the string str1 printf("/nstr1:"); gets(str1); printf("/nstr2:"); gets(str2); printf("**The string str1 puts(str1); puts(str2); proc(str1,str2); printf("****The new string****/n"); puts(str1); }
进入题库练习
填空题下列程序的输出结果是______。 #include<stdio.h> main() intx=10,y=10,i; for(i=0;x>8;y=++) printf("%d%d",X--,y);
进入题库练习
填空题设有以下宏定义 #define W 5 #define L (W+2) 则执行赋值语句p=L*2;(p为int 型变量)后,p的值为______。
进入题库练习
填空题由N个有序整数组成的数列已放在一维数组中,下列给定程序函数fun的功能是:利用折半查找法查找整数m在数组中的位置。若找到,返回其下标值;否则,返回-1。 折半查找的基本算法是:每次查找前先确定数组中待查的范围low和high(low<high),然后用m与中间位置(mid)上元素的值进行比较。如果m的值大于中间位置元素的值,则下一次的查找范围落在中间位置之后的元素中;反之,下一次的查找范围落在中间位置之前的元素中,直到low>high,查找结束。 请改正程序中的错误,使它能得出正确的结果。 注意:不要改动main函数,不得增行或删行,也不得更改程序的结构! 试题程序: #include<stdio.h> #define N 10 /**********found**********/ void fun(int a[],int m) int low=0,high=N-1,mid; while(low<=high) mid=(low+high)/2; if(m<a[mid]) high=mid-1; /********found**********/ else if(m>a[mid]) low=mid+1; else return(mid); return(-1); void main() int i,a[N]=(-3,4,7,9,13,45,67,89,100,180), k,m; printf("a数组中的数据如下:"); for(i=0;i<N;i++) printf("%d",a[i]); printf("Enter m:"); scanf("%d",&m); k=fun(a,m); if(k>=0) printf("m=%d,index=%d/n",m,k); else printf("Not be found /n");
进入题库练习
填空题有以下语句段: int n1=10,n2=20; printf("______",n1,n2); 要求按以下格式输出n1和n2的值: n1=10 n2=20每个输出行从第一列开始,请填空。
进入题库练习
填空题以下程序段的输出结果是 【6】 。 int i=9; printf("%o/n",i);
进入题库练习
填空题下面程序的输出结果是______。  # include <stdio.h>  main( )   staic char b[]="Goodbye";   char * chp = &b [7];   while(- - chp>=&b[0])putchar (* chp);   printf("/n");
进入题库练习
填空题以下程序中函数huiwen的功能是检查一个字符串是否是回文,当字符串是回文时,函数返回字符串:yes!,否则函数返回字符串:no!,并在主函数中输出。所谓回文即正向与反向的拼写都一样,例如:adgda,请填空。 #include<string.h> char*huiwen(char*str) { char*p1,*p2;int i,t=0; p1=str;p2=______; for(i=0;i<=strlen(str)/2;i++) if(*p1++!=*p2--){t=1;break;} if(t==0)return("yes!"); else return("no!"); } main() { char str[50]; printf("Input:");scanf("%s",str); printf("%s/n",huiwen(str)); }
进入题库练习
填空题以下程序的功能是:输出a、b、c三个变量中的最小值。 #include <stdio.h> main( ) { int a,b,c,t 1,t2; scanf("%d%d%d", t1=a<b ?{{U}} 【7】 {{/U}}; t2=c<t1?{{U}} 【8】 {{/U}}; printf("%d/n", t2 ); }
进入题库练习
填空题有以下程序: #include <stdio.h> main() int n=0,m=1,x=2; if(! n)x-=1; if(m) x-=2; if(x) x-=3; printf("%d/n",x); 执行后的输出结果是 【10】 。
进入题库练习