C++在线文档:

http://www.cplusplus.com/reference/

https://msdn.microsoft.com/zh-cn/library/aa187916.aspx [初学者如何使用MSDN]

http://tool.oschina.net/apidocs/apidoc?api=cpp%2Fen%2Fcpp.html

http://en.cppreference.com/w/cpp

下文转自:http://www.cnblogs.com/langqi250/archive/2012/11/01/2749980.html

1.  安装C的帮助手册

如果你使用的Linux发行版, 默认没有安装C语言的库函数MAN手册, 使用下面的方法解决:

# sudo apt-get install manpages

# sudo apt-get install manpages-de

# sudo apt-get install manpages-de-dev

# sudo apt-get install manpages-dev

2.  安装C++的帮助手册

一般的Linux发行版不会默认安装C++的帮助手册. 安装方法如下

http://gcc.gnu.org/mirrors.html是一个GCC的镜像站点

进入http://mirrors-us.seosue.com/gcc/站点, 或者其他的可用站点, 找到路径libstdc++/doxygen/, 下载文件libstdc++-api-4.5.2.man.tar.bz2, 或者其他更新的版本.

解压后, 将man/man3下的所有文件拷贝到/usr/share/man/man3/中, 即可.

在Linux下查询命令或函数的使用,通常是这样

man printf

man 3 printf

man cat

但是为了避免造成操作系统、C语言与C++的混淆,目前安装的C++ man pages与上面的查询命令有一些不同,主要是加了命名空间的限定,也就是说用这样的命令 : man cout , 是查询不到的。

正确的方法应该是:

man std::iostream  ,之后再通过搜索/cout,找到cout的说明

也就是说现在的查询命令应该是

man namespace::header   

man 命名空间::头文件

 

下面是英文原文

How many times did you try on the terminal the following command and got frustrated

$ man cout
No manual entry forcout

If you have decided that there is no way you can find more about cout apart from going to web, then read the article on how to install C++ man pages?

Once you have installed the documentation, you must follow the following method to know more about the function
If you are searching about cout, you know it is part of the namespace std and defined in the header iostream. So to search for cout, you must type

$ man std::iostream

Once the man page is open, you can search for cout.
Similarly for slist related function

$ man __gnu_cxx::slist

Thus the syntax to search any c++ man page is

$ man namespace::header

Note: The man pages are generated using doxygen. You may not much elaborate description like you get for C function.

Ubuntu下C/C++man手册安装方法及使用方法的更多相关文章

  1. ubuntu下Django的下载与安装(三种方法)

    方法一: 1下载: 1 安装python,Linux系统下,一般是安装好的,可以输入如下命令查看 python -V 如果没有安装,则需要安装,安装方法如下,首先从官网下载源码,然后: (1) $ t ...

  2. Ubuntu下Sublime Text 3解决无法输入中文的方法

    Ubuntu下Sublime Text 3解决无法输入中文的方法_百度经验http://jingyan.baidu.com/article/f3ad7d0ff8731609c3345b3b.html ...

  3. ubuntu下nodejs和npm的安装及升级

    ubuntu 下 nodejs 和 npm 的安装及升级 参考:https://segmentfault.com/a/1190000007542620 一:ubuntu下安装 node 和 npm命令 ...

  4. Ubuntu下查看软件版本及安装位置【转】

    Ubuntu下查看软件版本及安装位置 查看软件版本:     aptitude show xxx 也可用apt-show-versions (要先安装sudo apt-get install apt- ...

  5. Linux下C/C++帮助手册安装方法

    1.  安装C的帮助手册 如果你使用的Linux发行版, 默认没有安装C语言的库函数MAN手册, 使用下面的方法解决: # sudo apt-get install manpages # sudo a ...

  6. 关于ubuntu下sublime text 3 的安装和中文配置问题

    一.sublime text 3 在ubuntu 16.04下的安装过程 1)首先下载sublime text 3 的tar包 $ wget https://download.sublimetext. ...

  7. ubuntu下chromium浏览器flash插件安装

    ubuntu下chromium浏览器默认是不支持flash的,在新立德软件包中搜索flash得到的“Adobe Flash Player plugin installer”也没有什么卵用,因为装完以后 ...

  8. Ubuntu 下 vi 输入方向键会变成 ABCD 的解决方法

    Ubuntu 下 vi 输入方向键会变成 ABCD,这是 Ubuntu 预装的是 vim tiny 版本,安装 vim full 版本即可解决. 先卸载vim-tiny: $ sudo apt-get ...

  9. Ubuntu下软件的搜索与安装

    本文为笔者原创,首发于简书(点击这里查看). 小白玩转linux的第一个拦路虎就是软件的安装了.本文结合自己在Ubuntu14.04下软件安装经验做一个总结. 1.如何搜索软件? apt-cache ...

随机推荐

  1. Dubbo架构设计详解

    from:http://shiyanjun.cn/archives/325.html Dubbo是Alibaba开源的分布式服务框架,它最大的特点是按照分层的方式来架构,使用这种方式可以使各个层之间解 ...

  2. RPM方式编译升级centos内核

    [root@iZ2893wjzgyZ ~]# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org [root@iZ2893wjzgyZ ...

  3. vuejs全局api

    全局api set 增加数组 vm.$set 实例化方法 全局api delete 删除数组 vm.$delete 实例化方法 全局 api 组件component 实例化方法 components ...

  4. Log4net在类库中的用法

    app.config应当放置在解决方案的根目录下.具体流程如下: 第一步:应该下载log4net.dll并引入到你的项目中,下载见附件 第二步:需要配置相关的配置文件App.config或Web.co ...

  5. 【WPF】TextBox样式重写注意事项

    1.普通控件重写需要添加一行 <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="C ...

  6. mac: vmware fusion中cent os启动假死的解决办法

    环境: mac os X 10.9.2 + vmware 6.0.2 + cent OS 6.5 minimal 现象: Booting CentOS (2.6.32-358.e.l6.i686) i ...

  7. weblogic 10.x 上开发restful服务

    之前已经学习过 利用JAX-RS快速开发RESTful 服务,当时是jboss环境,如果原封不动的迁移到weblogic 10.x 版本,会杯具的发现应用启动失败,需要做些小调整: 项目结构如下: 需 ...

  8. springmvc 通过异常增强返回给客户端统一格式

    在springmvc开发中,我们经常遇到这样的问题:逻辑正常执行时返回客户端指定格式的数据,比如json,但是遇NullPointerException空指针异常,NoSuchMethodExcept ...

  9. swift调用oc语言文件,第三方库文件或者自己创建的oc文件——简书作者

    Swift是怎样调用OC的第三方库的呢?请看下面详情: 情况一: 1.首先打开Xcode,iOS->Application->Single View Application, 选Next. ...

  10. c++多重继承小结

    如果一个类从两个不同的类里继承两个同名的成员,则需要在派生类中使用类限定符来区分他们. 即在从A和B派生出来的c类中使用a::Show()和B::Show()来区分从这两个类那里继承的show()方法 ...