下面程序要实现的功能是打开当前目录下的文件abc,并向其追加一串字符“How are you!”,然后再关闭该文件,请将程序填写完整。 #include<fstream.h> void main(){ 【 】

admin2013-02-27  29

问题 下面程序要实现的功能是打开当前目录下的文件abc,并向其追加一串字符“How are you!”,然后再关闭该文件,请将程序填写完整。
   #include<fstream.h>
     void main(){
       【  】  
     f<<"How are you!"<<end1;
     f.close();
   }

选项

答案ofstream f( "abc" , los: :app)

解析
转载请注明原文地址:https://kaotiyun.com/show/6OVp777K
0

最新回复(0)