我想在終端上看到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