试题与答案

写出下列程序的运行结果______。#include <iostream.h>.#i

题型:填空题

题目:

写出下列程序的运行结果______。
#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为政府其它职能。

试题推荐
题型:选择题

下列各句中解说有误的一项是                                     (   )

A.“妇女无所幸”中“幸”是指封建君主对妇妾的宠爱,与“故幸来告良”中的“幸”用法相同。

B.“秋毫不敢有所近”中“秋毫”为鸟兽在秋天初生的细毛,比喻细小的东西。“近”为形容词作动词,“接触”“沾染”之意。

C.“窃为大王不取也”中“窃”为副词,常用作表示个人意见的谦词。“为”音wéi,动词,意为“认为”。

D.“再拜奉大 * * 足下”中“再拜”为拜两次,是古代隆重的礼节。“足下”是对人的尊称。

查看答案
微信公众账号搜索答案