聯(lián)通國脈通信股份有限公司招聘筆試題
聯(lián)通國脈通信股份有限公司招聘筆試題
1、寫一個函數(shù),實現(xiàn)二進制文件的轉(zhuǎn)存,要求轉(zhuǎn)存后的文件的開頭是文件的長度
#include "stdio.h"
main()
{
FILE *in,*out;
char ch,infile[],outfile[];
int length;
printf("Enter the infile name:/n");
scanf("%s",infile);
printf("Enter the outfile name:/n");
scanf("%s",outfile)
if((in=fopen(infile,"r"))==NULL)
{
printf("cannot open infile/n");
}
if((out=fopen(outfile,"w"))==NULL)
{
printf("cannot open outfile/n");
}
、、、、、、
更多內(nèi)容請下載附件