填空题
有以下程序:
#include <iostream>
#include <fstream>
using namespace std;
int main()
ofstream ofile("D:\\test.txt");
if(!ofile)
cout<<"test.txt can’t open"<<end1;
return 0;
ofile<<"This book is C++"<<" "<<12345<<end1;
ofile.close();
ifstream ifile("D:\\test.txt");
if ( ! ifile)
cout<<"test.txt can’t open"<<end1;
return 0;
char str[80];
ifile>>str;
ifile.close();
cout<<str<<end1;
return 1;
程序执行后的输出结果是 【15】 。
【参考答案】
This