笔果题库
高级语言程序设计
历年真题
搜题找答案,就上笔果题库
在C语言中,文件分为二进制文件和_______。
搜题找答案,就上笔果题库
#include<stdio.h> void main() { int a=0,b=2,c=3;   switch (a)  { case 0:switch (b==2)   { case l: printf(“*”);break;    case 2: printf (“%”);break;   }   case 1: switch (c)   { case l: printf(“$”);break;    case 2: printf (“&”);break;    default: printf (“#”);   }  }  printf (“\n”); }
搜题找答案,就上笔果题库
# include void fun(int *a,int *b,int x,int y) { *a=x+y;*b=x-y;} void main () { int c=8,d=4;   fun (&c,&d,5,10);   printf(“%d,%d ”,c,d); }
搜题找答案,就上笔果题库
# include<stdio.h> int fun (int x) { int p;   if(x==1) return 2;   else p=x-fun (x-2);   rerurnm p; } void main () { printf(“%d\n”,fun (9));}
搜题找答案,就上笔果题库
# include<stdio.h> int a=10; void f() { int a=30;   printf (“%d,”,a); } void main() { f ();   printf (“%d\n”,a); }
搜题找答案,就上笔果题库
从键盘输入代表平面上某点的横坐标x和纵坐标y,输出x和y的值并按下列要求输出相应的标志。 当x>0且y>0,属于第一象限,输出标志“A’’ 当x<0且y>0,属于第二象限,输出标志“B” 当x<0且y<0,属于第三象限,输出标志“C” 当x>0且y<0,属于第四象限,输出标志“D” 当x=0或y=0,不属于任何象限,输出标志“E”
搜题找答案,就上笔果题库
从键盘输入一个4行5列的二维整型数组,输出其每一行的最小值。
搜题找答案,就上笔果题库
计算并输出1!+2!+3!+4!+5!的值。 # include<stdio.h> int f (int a) { static int c=1;   c=c*a;   return_____;            /*第一空*/ } void main () { int i,k;   k=_________;          /*第二空*/   for (i=2;i<=5;i++) k+=f(________);/*第三空*/    printf (“%d\n”,k); }
搜题找答案,就上笔果题库
将文本文件fin.dat中的数字字符找出并写入文本文件fnum.dat中。 #include<stdio.h> void main () {  char ch;FILE *fin,*fnum;  fin=fopen (“fin.dat”,________);/*第一空*/  fnum=fopen (“fnum.dat”,“w’’);  while(!feof(_______))    /*第二空*/ {  ch=fgetc(fin);  if(______)fputc (ch,fnum);/*第三空*/ }  fclose (fin);  fclose(fnum); }
搜题找答案,就上笔果题库
自定义标识符由字母、数字或下划线组成,且第一个字符必须是( )