浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年10月25日

摘要: c++ - safe reading from a stream in a for loop using getline - Stack Overflow 2 down voteThe iostreams by default do not throw exceptions when errors occur. If you want to enable them:cout.execeptions... 阅读全文
posted @ 2012-10-25 13:31 lexus 阅读(231) 评论(0) 推荐(0)

摘要: getline - C++ Referencestd::getline<string>istream& getline ( istream& is, string& str, char delim ); istream& getline ( istream& is, string& str );Get line from streamExtracts characters from is and ... 阅读全文
posted @ 2012-10-25 13:31 lexus 阅读(433) 评论(0) 推荐(0)