| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 460 人关注过本帖
标题:c++编译求助
取消只看楼主 加入收藏
surivering
Rank: 1
等 级:新手上路
帖 子:17
专家分:0
注 册:2005-3-5
收藏
 问题点数:0 回复次数:0 
c++编译求助
#include<iostream>
#include<fstream>
using namespace std;
int main()
{
ofstream fileA("fileA.txt",ios::nocreate);
if(! fileA)
{
cerr<<"Cant't open file!\n";
exit(1);
}
fileA<<"AAA1";
fileA<<"AAA2";
fileA<<"\n";
fileA.close();
}
编译显示
error C2039: 'nocreate' : is not a member of 'basic_ios<char,struct std::char_traits<char> >'C:\Program Files\Microsoft Visual Studio\MyProjects\s16\s16.cpp
(6) : error C2065: 'nocreate' : undeclared identifier
这个是什么原因啊?
搜索更多相关主题的帖子: 编译 
2006-03-25 14:02
快速回复:c++编译求助
数据加载中...
 
   



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

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