[求助]关于ofstream的问题
下面是我写的程序,为了了解ofstream的用法,可就是调试不成功,麻烦大家帮我改下,我的编程环境是.net 2003
#include "iostream.h"
#include "fstream.h"
#include "string.h"
#include "stdafx.h"
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
ofstream ofs("data.dat");
ofs << "Hello!" << endl;
ofs << 10000 << endl;
ofs << 123.4f <<endl;
ofs.close();
return 0;
}