Sunday, May 5, 2024
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 4117  / 2 Years ago, thu, september 29, 2022, 2:24:14

I'm learning C++ and are currently for some weeks without consistently working Internet connection. I search a (ASCII) terminal searchable & readable C++ documentation. Today I e. g. searched for c_str() reference and couldn't find anything in Ubuntu default man pages.



I'm thankful for any tips and hints


More From » documentation

 Answers
2

You can install libstdc++6-4.5-doc to get the manuals for the GNU c++ library, and then man std_basic_string tells you about the contents of that class.



You may ask: how should I know to look in that particular manpage? Well, what you want is the -k (keyword) argument to man:



mbp@joy% man -k c_str
....
std_basic_streambuf (3cxx) - (unknown subject)
std_basic_string (3cxx) - (unknown subject)
std_basic_stringbuf (3cxx) - (unknown subject)
std_basic_stringstream (3cxx) - (unknown subject)


and then you can ask man for one of those particular pages.



Or, of course, if you search the web (more thoroughly than I did), you might be able to find a PDF of the standard library definition.


[#43429] Saturday, October 1, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lotceptin

Total Points: 374
Total Questions: 106
Total Answers: 118

Location: The Bahamas
Member since Tue, Apr 27, 2021
3 Years ago
;