C ++的手册页在哪里? [英] Where are the man pages for C++?

查看:125
本文介绍了C ++的手册页在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

C ++中的文档是否存在于Linux中?我想要类似于C的手册页。
例如,docs的字符串,stl,iostream,ifstream等。

解决方案

如果您使用g ++附带的正常libstdc ++,其文档可在线此处。 / p>

大多数Linux发行版都可以作为特定包离线使用;对于Debian派生的发行版,例如,它是 libstdc ++ 6-< version> -doc (例如在我的Ubuntu机器我有 libstdc + + 6-4.4-doc 安装)。一般来说,文档将放在 /usr/share/doc/libstdc++6-4.4-doc 之类的地方。



关于实施专用文档;对于编译器不可知的文档,Internet上的许多站点为标准库提供参考文档。最引用的一个是 cplusplus.com ,但是已知其文档中包含多个错误;还有 msdn.microsoft.com上的C ++库部分在近几年有了更好的表现分离什么是微软的具体细节从标准规定。



最后,如果你想精确到偏执狂,最终的规范文档是 C ++标准,即来自ISO ANSI BSI (价格相当高);但是有几个草稿是免费的,这些草稿对于临时使用来说是足够好的。


Does documentation for C++ exist in Linux? I want something like the man pages of C. For example, docs for string, stl, iostream, ifstream, etc.?

解决方案

If you use the "normal" libstdc++ shipped with g++, its documentation is available online here.

Most Linux distributions make it also available offline as a particular package; for Debian-derived distros, for example, it's libstdc++6-<version>-doc (e.g. on my Ubuntu machine I have libstdc++6-4.4-doc installed). In general the documentation will be put somewhere like /usr/share/doc/libstdc++6-4.4-doc.

This about implementation-specific documentation; for compiler-agnostic docs, instead, many sites on the Internet provide reference documentation for the standard library. One of the most referenced is cplusplus.com, that however is known to contain several errors in its documentation; also the C++ library section on msdn.microsoft.com has got much better in the recent years in separating what are the Microsoft-specific details from what the standard dictates.

Finally, if you want precision up to the paranoia, the ultimate normative document is the C++ standard, that is sold from ISO, ANSI and BSI (for a quite high price); there are however several drafts available for free, which are more than good enough for "casual use".

这篇关于C ++的手册页在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆