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

C++编译出错时,出错信息好难看懂啊error: no matching function for call to 'std:basic_ofstream<

2012-03-29 
C++编译出错时,出错信息好难看懂啊。error: no matching function for call to std::basic_ofstreamerror

C++编译出错时,出错信息好难看懂啊。error: no matching function for call to 'std::basic_ofstream<
error: no matching function for call to 'std::basic_ofstream<char, std::char_traits<char> >::basic_ofstream(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)'

ofstream out((fileName + "_33dd"));
下面这样改就正确了,但我看不懂那编译错误信息在讲什么
ofstream out((fileName + "_33dd").c_str());

[解决办法]

C/C++ code
http://www.cplusplus.com/reference/iostream/ofstream/ofstream/
[解决办法]

热点排行