Re: [vox-tech] finding information on c++

For C++'s STL (of which the "string" class is a part of), I go to SGI's
web reference (I use this a lot):
http://www.sgi.com/tech/stl/
Not exactly the non-web solution you were looking for, but it's not like
there's a good man page for C++ and the web is the next best solution. At
least all of STL stuff is in one place.
For iostream and other C++ stuff, I sometimes go to:
http://www.math.utah.edu/docs/info/iostream_toc.html
but I use books more than the web reference for iostream (I use "C/C++
Programmer's Reference", available at UCD bookstore -- it has a list of
available member functions and stuff). Also reading /usr/include/g++-2/
helps, sometimes.
As for figuring out things like "string" is actually a class derived from
"basic_string", you should look for a graphical chart that shows the
relationship between different classes. For practical purposes, I've only
needed to know that:
string is derived from basic_string
cout is of type derived from ostream
cin is of type derived from istream
ifstream is also derived from istream
ofstream is also derived from ostream
There are lots of other derivations involved in there, but you don't
really need to know them until you need them (happens very rarely), at
which time you can poke through /usr/include/g++-2/ or the web and find
what you need.
Oh, and this mailing list helps, too :)
-Mark
On Fri, 25 May 2001, Peter Jay Salzman wrote:
> i'm generally a C programmer, so sorry if this is a painful question.
>
> i'm having a hard time finding man or info pages on C++. on C, it's easy.
> if i wanted to know how to find a substring, i would do "man string" which
> would lead me to a bunch of functions like index() and strstr().
>
> i guess what i'm asking is, is there a way to list out all the methods that
> belong to a particular class? in the string example, i was going to convert
> the C++ string into a C string and use strstr, but if this was the way things
> are done, i might as well just use C.
>
> using google, i found the substr method. but firing up a browser everytime i
> want to learn how to do something isn't exactly a good answer too.
>
> it took me forever to figure out that bastring.h is what i want to look at,
> but even this isn't a good answer. C++ header files look like a giant mess
> to my eyes.
>
> i'm thinking that there's prolly some documentation on my system that i don't
> know about.
>
> ??
>
> pete
>
> --
> "The following addresses had permanent fatal errors..." p@dirac.org
> -- Mailer Daemon www.dirac.org/p
>
--
Mark K. Kim
http://www.cbreak.org/mark/
PGP key available upon request.