更多"以下程序的功能是从名为filea.dat的文本文件中逐个读入字符并显示"的相关试题:
[填空题]以下程序的功能是从名为filea.dat的文本文件中逐个读入字符并显示在屏幕上。请填空。
majn( )
FILE *fp; char ch;
fp=fopen(______);
ch=fgetc(fp);
whle(!feof(fp)) putchar(ch); ch=f8etc(fp);
putchar(’/n’); fclose(fp);
[填空题]以下程序的功能是从名为filea.dat的文本文件中逐个读入字符并显示在屏幕上。请填空。
majn( )
{ FILE *fp; char ch;
fp=fopen(______);
ch=fgetc(fp);
whle(!feof(fp)) { putchar(ch); ch=f8etc(fp); }
putchar(’/n’); fclose(fp);
}
[填空题]以下程序的功能是从名为filea.dat的文本文件中逐个读入字符并显示在屏幕上。请填空。
#include<stdio.h>
main( )
FILE *fp;char ch;
fp=fopen(______);
ch=fgetc(fp);
whlie(!feof(fp))putchar(eh);ch=fgetc(fp);
putehar("/n");fclose(fp);
[填空题]以下程序的功能是从名为“filea. dat”的文本文件中逐个读入字符并显示在屏幕上,请填空。
#include<stdio.h>
main( )
FILE *fp; char ch;
fp=fopen(______);
ch=fgetc(fp);
while(______(fp))putchar(ch); ch=fgetc(fp);
putchar(’/n’); fclose(fp);
[填空题]以下程序从名为filea.dat的文本文件中逐个读入字符并显示在屏幕上。请填空。
#include <stdio.h>
main( )
FILE *fp; char ch;
fp= fopen(______);
ch= fgetc(fp);
while(!feof(fp)) putchar(ch); ch=fgetc(fp);
putchar(’/n’); fclose(fp);
[填空题]以下程序的作用是:从名为filea.dat的文本文件中逐个读入字符并显示在屏幕上。请填空。
#include <stdio.h>
main( )
FILE *fp; char ch;
fp=fopen(______);
ch=fSetc(fp);
while(!feof(fp)) putchar(ch); ch=fSetc(fp);
putchar(’/n’); fclose(fp);
[填空题]以下程序的作用是:从名为filea.dat的文本文件中逐个读入字符并显示在屏幕上。请填空。
#include <stdio.h>
main( )
{FILE *fp; char ch;
fp=fopen(______);
ch=fSetc(fp);
while(!feof(fp)) { putchar(ch); ch=fSetc(fp); }
putchar(’/n’); fclose(fp);
}
[填空题]下列程序从名为filea.dat的文本文件中逐个读入字符并显示在屏幕上。请填空。
#include <stdio.h>
main( )
FILE *fp; char ch;
fp = fopen( );
ch = fgetc(fp);
while(!feof(fp)) putchar(ch); ch=fgetc(fp);
putchar("//n"); fclose(fp);
[填空题]下列程序从名为filea.dat的文本文件中逐个读入字符并显示在屏幕上。请填空。
#include <stdio.h>
main( )
{ FILE *fp; char ch;
fp = fopen( 【15】 );
ch = fgetc(fp);
while(!feof(fp)) { putchar(ch); ch=fgetc(fp); }
putchar("/n"); fclose(fp);
}
[填空题]以下程序的功能是:利用指针向三个整型变量,并通过指针运算找出三个数中最大值,输出到屏幕上。请填空
main( )
int x,y,z,max,*px,*py,*pz,*pmax;
scanf("%d%d%d",&x,&y,&z);
px=&x;py=&y;pz=&z;pmax=&max;
______;
if(*pmax<*py)*pmax=*py;
if(*pmax<*pz)*pmax二*pz;
printf("max=%d/n",max);
[填空题]以下程序的功能是利用指针指向3个整型变量,并通过指针运算找出3个数中的最大值,输出到屏幕上,请填空。
main( )
int x,y,z,max,*px,*py,*pz,*pmax;
scanf("%d%d%d",&c,&y,&z);
px=&x; py=&y; pz=&z;pmax=&max;
______;
if(*pmax<*py) *pmax=*py;
if(*pmax<*pz) *pmax=*pz;
printf("max=%d/n",max);
[填空题]以下程序的功能是:利用指针指向三个整型变量,并通过指针运算找出三个数中的最大值,输出到屏幕上。请填空。
main( )
{int x,Y,z,max,* px,*PY,*pz,*pmax;
scanf("%d%d%d",&x,&y,&z);
px=&x;PY=&y;pz=&z;pmax=&max;
【 】;
if(*pmax<,* PY)* pmax=*PY;
if(*pmax<*pz)*pmax=*pz;
printf("max=%d\n",max);
}