首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

有关文件流解决方案

2012-03-14 
有关文件流#include stdafx.h#includefstreamint _tmain(int argc, _TCHAR* argv[]){ifstream inputr

有关文件流
#include "stdafx.h"
#include<fstream>

int _tmain(int argc, _TCHAR* argv[])
{
ifstream input;


return 0;
}
在vs2008下 写的,已经包含了相应的头文件,却说error C2065: “ifstream”: 未声明的标识符 哪里出了问题 谢谢

[解决办法]
#include<fstream>
using namespace std;
[解决办法]
#include "stdafx.h"
#include<fstream>

int _tmain(int argc, _TCHAR* argv[])
{
std::ifstream input;


return 0;
}

热点排行