如何用c++读入以string为文件名的文件??????????????????????????????????????????????????????????
void compare(string a)
{
ifstream t(//文件名为a//);
string str((istreambuf_iterator<char>(t)),istreambuf_iterator<char>());
ofstream fileout("检查套装/检查室/test.cpp",ios::out);
fileout<<str;
}