在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 headeriostream. 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.

linux c++ 函数 查看,在C++ man pages中查询C++的函数相关推荐

  1. pandas使用str函数和contains函数查看dataframe特定数据列中是否匹配或包含特定模式的字符串(match or contain a pattern in column value)

    pandas使用str函数和contains函数查看dataframe特定数据列中是否匹配或包含特定模式的字符串(match or contain a pattern in column value) ...

  2. 习题 8.5 将本章的例8.4改写为一个多文件的程序:1.将类定义放在头文件arraymax.h中;2.将成员函数定义放在源文件arraymax.cpp中;3.主函数放在源文件file1.cpp中。

    C++程序设计(第三版) 谭浩强 习题8.5 个人设计 习题 8.5 将本章的例8.4改写为一个多文件的程序: 1.将类定义放在头文件arraymax.h中: 2.将成员函数定义放在源文件arraym ...

  3. hlookup函数多个条件_30天中30个Excel函数:10 – HLOOKUP

    hlookup函数多个条件 For day 10 in the 30XL30D challenge, we'll examine the HLOOKUP function. Not too surpr ...

  4. pythonpandas函数详解_对pandas中Series的map函数详解

    Series的map方法可以接受一个函数或含有映射关系的字典型对象. 使用map是一种实现元素级转换以及其他数据清理工作的便捷方式. (DataFrame中对应的是applymap()函数,当然Dat ...

  5. 查询qt中的数据_EXCEL在多表中查询数据(函数中引用工作表的办法)

    与EXCEL打交道也好几年了,你是不是还停留在经常性简单而重复的工作呢?每月忙的时候天天加班,空闲的时候盯着手机刷刷刷,,既然如此,轻松的时候就应该琢磨下怎样提升效率,比如规范好自己的数据源,设计一套 ...

  6. 在c语言中函数的隐函,C语言中的隐式函数声明

    1 什么是C语言的隐式函数声明 在C语言中,函数在调用前不一定非要声明.如果没有声明,那么编译器会自动按照一种隐式声明的规则,为调用函数的C代码产生汇编代码.下面是一个例子: int main(int ...

  7. matlab中ss函数_matlab状态空间模型(matlab中如何通过ss函数和tf2ss函数将微分方程转化...)...

    matlab中如何通过ss函数和tf2ss函数将微分方程转化... 例如下面的一道题. 方法一: num=[0 0 10 10]; den=[1 6 6 10]; [A,B,C,D]=tf2ss(nu ...

  8. c语言中fputc函数的作用是,C语言中文件的读写函数之 fputc、fgetc

    C语言中文件的读写函数之 fputc.fgetc 首先,我们要知道fputs和fgetc这两个函数是包含在标准库函数中的函数,换句话说,就是封装在标准函数中的两个函数.其中这两个函数都是每次只能输入或 ...

  9. matlab定义函数多输入,matlab .m文件中定义多个函数

    matlab帮助系统中的说明: Functions The main difference between a script and a function is thata function acce ...

最新文章

  1. 考研最惨专业排行榜,你上榜了吗?
  2. 我看team work
  3. spring @lazy_Spring @Lazy批注用例
  4. python print 如何加锁_python中给程序加锁之fcntl模块的使用
  5. python怎么一步步调试_PyCharm入门第一步(二)——调试第一个Python应用程序
  6. 磨刀不误砍柴工,ORAchk健康检查好帮手
  7. epson r1900 清零软件_Epson爱普生me1100清零软件 me1100打印机废墨清零软件
  8. java-eclipse-tomcat配置运行发布网站
  9. 『转』VC 开机自动启动程序代码
  10. ImportError: DLL load failed:找不到指定的模块 解决方案
  11. 数据分析师出品:新媒体运营年终总结模板分享
  12. js中写文档write和innerHTML的区别
  13. java 项目启动异常 Command line is too long.
  14. Navicat Premium 连接oracle 提示ORA-01017:用户名/口令无效;登陆被拒绝
  15. red hat enterprise linux yum,Red Hat Enterprise Linux7.x(RHEL7.x)更换CentOS YUM源
  16. js设置弹出式独立窗口页面,和 window 的方法
  17. Win10+Cuda10.2的Pytorch安装
  18. access 重置索引_Microsoft Access中的索引
  19. 气象数据NC批量转TIF及月尺度计算年尺度-同理其他指标
  20. 技术总监/技术leader 职责与工作记录 第二天(包含技术部门规范示例)

热门文章

  1. MSM--Memcached_Session_Manager介绍及使用
  2. Ubuntu 11.04上搭建Android开发环境
  3. session和cache的区别是什么?
  4. Android Support v4、v7、v13 介绍
  5. 递归--整数划分问题
  6. 向STM32串口发送数据的标准函数
  7. Keil μVision 5版新建工程详细步骤(版本2)
  8. 关于实现udev/mdev自动挂载与卸载
  9. java核心(十五):List、Set、Map功能分析
  10. 系统自动化安装kickstart