不知道少了什么???

justyk justyk 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

#include "stdafx.h"

#include "fstream.h"// this file have included iostream.h already
#include "ios.h"//for ios_base::out etc

int main(int argc, char* argv[])
{
ofstream f2("file2.out",ios_base::out);
return 0;
}

Compiling...
file.cpp
E:\file\file.cpp(14) : error C2653: 'ios_base' : is not a class or namespace name
E:\file\file.cpp(14) : error C2065: 'out' : undeclared identifier
Error executing cl.exe.
Creating browse info file...
...全文
评论 2
收藏 已收藏
分享
返回顶部
justyk
VC/MFC 16,550 成员 421,606 内容