![]() |
#2
很远的那颗星2008-07-28 23:13
|
#include<iostream.h>
#include<fstream>
using namespace std;
int main()
{
ofstream out("file.txt",ios_base::trunc);
return 0;
}
我想写一个日记本,可是这样只有一个文件呀,我能不能让他在每次打开的时候都生成一个新文件呀!!高手帮忙指点下!!