填空题
有以下程序:
#include<fstream>
#include<string>
using namespace std;
int main()
char ch[]="The end";
ofstream outstr("______",ios_base::app);
for(int i=0;i<strlen(ch); i++) outstr.put(ch[i]);
outstr.close();
return 0:
若程序实现的功能是在文件d:\put.txt的尾部追加写入一串字符,试将程序补充完整。
【参考答案】
d:\\\put.txt