我想在终端上看到C++关键字的手动条目,如std::vector,std::set,std::map, iostream,std::size()
e.t.c,但它说,没有手动输入这些命令。甚至当我输入man iostream
时也显示相同的内容。 g++
安装在我的电脑中。为什么没有在gcc-4.9.1-4ubuntu2中手动输入std :: vector?
0
A
回答
4
在基于Linux的计算机上没有人为C++语言及其功能提供支持。如果你真的想与标准文档在线工作,您可以参考cppreference
但是您也可以下载cppreference各种格式的完整文档和工作离线。我建议你应该遵循这一点,从下面的位置下载完整的文件存档:
1
要在手册页内搜索某些内容,请使用-k
或--apropos
,即man -k "vector"
。
要找到关于C++标准库的文档,我推荐使用cppreference.com,由Bjarne Stroustrup编写的任何书以及C++ standard的最新工作草案。
man-pages范围不包含C++标准库。特别是,man man-pages
(online version)说:
DESCRIPTION This page describes the conventions that should be employed when writ‐ ing man pages for the Linux man-pages project, which documents the user-space API provided by the Linux kernel and the GNU C library. [..]
而且继续描述手册页的部分。您还可以在man man
中查看这些相同的部分。例如,它可能如下所示:
Sections of the manual pages The manual Sections are traditionally defined as follows: 1 Commands (Programs) Those commands that can be executed by the user from within a shell. 2 System calls Those functions which must be performed by the kernel. 3 Library calls Most of the libc functions. 4 Special files (devices) Files found in /dev. 5 File formats and conventions The format for /etc/passwd and other human-readable files. 6 Games 7 Overview, conventions, and miscellaneous Overviews of various topics, conventions and protocols, character set standards, and miscellaneous other things. 8 System management commands Commands like mount(8), many of which only root can execute.
相关问题
- 1. 为什么在C++ std :: vector中没有pop_front方法?
- 2. 手动中毒的std :: vector
- 3. 为什么使用std :: vector :: reserve有用?
- 4. std :: set和std :: vector有什么区别?
- 5. 为什么没有std :: inplace_merge_unique?
- 6. 为什么没有std :: from_string()?
- 7. 为什么没有std :: on_exit?
- 8. 为什么std :: vector需要operator =
- 9. 为什么std :: hash没有在C++ 0x中为std :: weak_ptr定义?
- 10. 为什么std :: pair没有迭代器?
- 11. 为什么for_each没有std ::前缀
- 12. 为什么std :: vector和std :: array的C++ initializer_list行为不同?
- 13. boost :: container :: vector比std :: vector更快吗?为什么?
- 14. std :: vector <float> to std :: vector <glm::vecX>没有复制
- 15. 推入std :: vector时std :: unique_ptr的正确用法是什么?
- 16. 是std :: unique_ptr移入std :: vector
- 17. 为什么我不能将PictureBox ^存储在std :: vector中?
- 18. 为什么begin()在std :: vector中需要擦除?
- 19. 为什么不是std :: string是std :: vector的专门化?
- 20. std :: shared_ptr有什么问题<std :: vector <double>>
- 21. 为什么输入[]没有提交?
- 22. 什么时候有人将std :: vector定义为thread_local?
- 23. 为什么std :: vector :: push_back具有虚拟析构函数的segfaults?
- 24. 为什么std :: vector :: front有两个定义? (C++)
- 25. 为什么std :: vector :: insert在VS2010中插入重复元素时失败?
- 26. 为什么的std ::动未动
- 27. 为什么std :: ratio没有值成员?
- 28. std :: vector :: data()是什么状态?
- 29. 什么是std :: vector :: front()用于?
- 30. 什么是C#等价于std :: vector :: iterators?
手册页不包括C++标准库,据我所知。 – 2014-11-09 01:10:55
我已经看到了,它显示了STL以及其他C++命令的结果。在我的情况下,它甚至没有显示“man bool”“man namespace”。 – Shravan40 2014-11-09 01:14:17
它确实为某些图书馆显示。像stdio和东西。但并非一切都被覆盖。 – saruftw 2014-11-09 01:16:50