Junjun&3588 个人博客

-个人博客-
热爱技术,喜欢科技. Hello Coder!!
  1. 首页
  2. 未分类
  3. 正文

Xcode下出现string无法ifstream

2010-11-25 589点热度 0人点赞 0条评论

/Users/cn3588/Desktop/c++/test/main.cpp:304:0 /Users/cn3588/Desktop/c++/test/main.cpp:304: error: no matching function for call to 'std::basic_ifstream<char, std::char_traits<char> >::open(std::string&)'

提示这样的错误

解决办法

http://www.dreamincode.net/forums/topic/54722-try-to-use-a-dynamic-file-name/

例子

in_a.open(f_n1.c_str());









标签: 暂无
最后更新:2010-11-25

admin3588

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理。

COPYRIGHT © 2022 Junjun&3588 个人博客. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang