我想在終端上看到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. 手動中毒的std :: vector
- 2. 爲什麼在C++ std :: vector中沒有pop_front方法?
- 3. std :: set和std :: vector有什麼區別?
- 4. 爲什麼沒有std :: on_exit?
- 5. 爲什麼沒有std :: inplace_merge_unique?
- 6. 爲什麼std :: hash沒有在C++ 0x中爲std :: weak_ptr定義?
- 7. 爲什麼std :: vector和std :: array的C++ initializer_list行爲不同?
- 8. 爲什麼我不能將PictureBox ^存儲在std :: vector中?
- 9. 爲什麼begin()在std :: vector中需要擦除?
- 10. 爲什麼不是std :: string是std :: vector的專門化?
- 11. 爲什麼輸入[]沒有提交?
- 12. 什麼時候有人將std :: vector定義爲thread_local?
- 13. 爲什麼std :: vector :: front有兩個定義? (C++)
- 14. 爲什麼std :: vector :: push_back具有虛擬析構函數的segfaults?
- 15. 爲什麼std :: vector :: insert在VS2010中插入重複元素時失敗?
- 16. 爲什麼的std ::動未動
- 17. 什麼是std :: vector :: front()用於?
- 18. std :: vector :: data()是什麼狀態?
- 19. man kaio:沒有kaio的手動輸入
- 20. 爲什麼std :: vector在初始化時強制複製?
- 21. 爲什麼OpenGL不能從std :: vector中繪製對象?
- 22. 爲什麼沒有輸出?
- 23. 爲什麼我的輸入值沒有存儲在數組中?
- 24. 爲什麼不std :: move在std :: unique_lock上有什麼作用?
- 25. 爲什麼C++ 11中沒有vector(size_type n,const Allocator&alloc)?
- 26. 爲什麼在C++ 17中沒有std :: future :: then?
- 27. 有沒有辦法將std :: vector <const T*>轉換爲std :: vector <T*>而無需額外分配?
- 28. 爲什麼std :: cin.getline沒有采用std :: string的oveloaded方法?
- 29. 在這個std :: vector構造函數中發生了什麼?
- 30. iterate std :: vector <std :: vector <char>>?
手冊頁不包括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