标题:[求助]关于ofstream的问题
取消只看楼主
lblovett
Rank: 1
等 级:新手上路
帖 子:22
专家分:0
注 册:2007-3-17
 问题点数:0 回复次数:1 
[求助]关于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;
}

搜索更多相关主题的帖子: ofstream include endl int 
2007-05-08 15:01
lblovett
Rank: 1
等 级:新手上路
帖 子:22
专家分:0
注 册:2007-3-17
得分:0 
谢谢,我的问题已解决了
2007-05-11 10:48



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-137644-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.381534 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved