请大家帮我看看
#include<iostream>
#include<fstream>
#include<algorithm>
#include<string>
using namespace std;
int main()
{
/*std::ifstream in("1100.txt");
std::istreambuf_iterator<char> beg(in), end;//error //istreambuf_iterator没有定义,它在哪个头文件中
std::string str(beg, end);
cout<<str;*/
std::ifstream in("1100.txt");
std::ostringstream tmp; //error 与上面同理
tmp << in.rdbuf();
std::string str = tmp.str();
return 0;
}
//这是我在 论坛上看到的 关于str 一次读入全部文件的程序 可是调试不成功!