C++ ofstream outfile; outfile.open ("tel.txt",ios::out|ios::ofstream outfile;outfile.open ("tel.txt",ios::out|ios::

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/09 05:07:16

C++ ofstream outfile; outfile.open ("tel.txt",ios::out|ios::ofstream outfile;outfile.open ("tel.txt",ios::out|ios::
C++ ofstream outfile; outfile.open ("tel.txt",ios::out|ios::
ofstream outfile;
outfile.open ("tel.txt",ios::out|ios::

C++ ofstream outfile; outfile.open ("tel.txt",ios::out|ios::ofstream outfile;outfile.open ("tel.txt",ios::out|ios::
ios::app

以追加的方式打开文件

ios::out

文件以输出方式打开(内存数据输出到文件)
参照http://wenku.baidu.com/view/40ba6e2ced630b1c59eeb556.html 可以自己去看下