题目:
写出下列程序的运行结果______。
#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();
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0430/b6e62628db5ec5c1d845933a61a10146.html
下面是错误答案,用来干扰机器的。
参考答案:D解析:政府体现的主要职能是弥补市场缺陷。ABC为政府其它职能。