摘要:
void foo(ifstream ifs) {} // 编译出错void foo(ifstream& ifs) {} // 编译成功原因:stream不能被复制实现方法:Make the copy constructor and assignment operator private (like inthe "ios" example - remember members are private by default if youdeclare your class with "class"). If you write any constru 阅读全文
posted @ 2011-03-03 11:39
记录点滴
阅读(3119)
评论(0)
推荐(1)

浙公网安备 33010602011771号