Chinaunix

标题: 请问那里能找到c++中“cout”实现的源码? [打印本页]

作者: gothicane    时间: 2007-06-21 15:52
标题: 请问那里能找到c++中“cout”实现的源码?
linux下,各位老大帮帮忙,谢谢。
作者: rain_fish    时间: 2010-07-08 16:33
不知道有没有知道的朋友。。。
作者: prolj    时间: 2010-07-08 16:42
libstdc++-dev
作者: 没本    时间: 2010-07-08 16:45
iostream属于G++源码的一部分

http://mirrors.kernel.org/gnu/gcc/gcc-4.5.0/gcc-g++-4.5.0.tar.bz2
作者: llslls_007    时间: 2010-07-08 17:24
去sgi 官网 下载源码包

cout , cin  的定义代码在 iostream.cxx  文件中定义

istream cin(0);
ostream cout(0);
ostream cerr(0);
ostream clog(0);


找到相应的类的定义就可以了
作者: 红星生活    时间: 2010-07-17 11:26
提示: 作者被禁止或删除 内容自动屏蔽




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2