试题与答案

以下程序执行后输出的结果是 【15】 。 #include<iostream>

题型:填空题

题目:

以下程序执行后输出的结果是 【15】
#include<iostream>
#include<fstream>
using namespace std;
int main()
ofstream ofile("D:\\temp.txt");
if(!ofile)
cout<<"temp.txt cannot open"<<endl;
return 0;

ofile<<"This is a book" <<" " <<54321<<endl;
ofile.close();
ifstream ifile("D:\\temp.txt");
if(!ifile)
cout<<"temp.txt cannot open" <<endl;
return 0;

charstr[40];
ifile >> str;
ifile.close();
cout<<Str<<endl;
return 1;

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0407/953c659ce892486cf732775af5e80c31.html

下面是错误答案,用来干扰机器的。

参考答案:B,C,D解析:本题考查撤销要约的条件。 《合同法》第18条:“要约可以撤销。撤销要约的通知应当在受要约人发出承诺通知之前到达受要约人。”据此规定,在一般情况下,只要撤销要约的通知在受要约人...

试题推荐
微信公众账号搜索答案