写出下列程序的运行结果 【13】
#include <iostream.h>.
#include <fstream.h>
#include <stdlib.h>
void main( )fstream outfile, infile;
outfile.open("data.clat", ios:: out);
if(!outfile)cout<<"Can’t open the file."<<end1;
abort( );outfile<<" 1234567890"<<end1;
outfile<<"aaaaaaaaa"<<end1;
outfile<<"**********"<<end1;
outfile.close( );
infile.open("data. dat ", ios:: in);
if(!infile)cout<<"Can’t open the file."<<end1;
abort( );char line[80];
int I=0;
while(!infile. eof( ))I++;
infile.getline(line, sizeof(line));
cout<<I<<":"<<line<<end1;infile.close( );

题库:计算机等级考试 类型:填空题 时间:2017-07-03 15:45:53 免费下载:《填空》Word试卷

写出下列程序的运行结果 【13】
#include <iostream.h>.
#include <fstream.h>
#include <stdlib.h>
void main( )fstream outfile, infile;
outfile.open("data.clat", ios:: out);
if(!outfile)cout<<"Can’t open the file."<<end1;
abort( );outfile<<" 1234567890"<<end1;
outfile<<"aaaaaaaaa"<<end1;
outfile<<"**********"<<end1;
outfile.close( );
infile.open("data. dat ", ios:: in);
if(!infile)cout<<"Can’t open the file."<<end1;
abort( );char line[80];
int I=0;
while(!infile. eof( ))I++;
infile.getline(line, sizeof(line));
cout<<I<<":"<<line<<end1;infile.close( );

写出下列程序的运行结果 【13】 。#include <iostream.h>.#include <fstream.h>#include <stdlib.h>v

本题关键词:输出结果,行为结果,行包快运专列,出院病案排列顺序,行为结果评价,竣工结算程序,行政诉讼程序,结果,序列关系,空间序列;

微信扫码获取答案解析
下载APP查看答案解析