摘要:
ifstream作为函数的参数要加&参考:http://www.cnblogs.com/growup/archive/2011/03/03/1971528.htmlvoid foo(ifstream ifs) {} // 编译出错void foo(ifstream&ifs) {} // 编译成功原因:stream不能被复制实现方法:Make the copy constructor and assignment operator private (like inthe "ios" example - remember members are private 阅读全文
posted @ 2013-10-17 14:17
yunsicai
阅读(684)
评论(0)
推荐(0)
浙公网安备 33010602011771号