![]() |
#2
eagleboycn2008-01-09 17:57
|
#include <iostream.h>
#include <fstream.h>
using namespaced std;
int main()
{
ofstream ofs("file.txt");
if (!ofs)
{cout<<"打开文件失败"<<endl; // 这个if语句是什么意思,具体点,还有exit(1)也不明白,里面的参数又是什么。。
exit(1);
}
ofs<<1234<<endl
<<"tyu"<<endl;
}