Archived

This topic is now archived and is closed to further replies.

C/C++ documentation?

This topic is 5095 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

In Java one can use http://java.sun.com/j2se/1.4.2/docs/api/ to find out about the specifications of all classes and its methods. Is there something similar for C/C++?

Share this post


Link to post
Share on other sites
No there isn''t. There are standard specifications for both C and C++, but that is not the same thing as documentation (Java also has a specification. What you''ll want to look for is a reference book. The C++ Programming Language by Bjarne Stroustrup is a great place to start for C++. The Special Edition has a couple of new appendices covering the STL and something else, but I haven''t looked at it yet. Also, there is a book called the C99 Reference or something like that, which covers all of the C99 features as detailed in the C99 specification.

Share this post


Link to post
Share on other sites
For C++, the definitive source is the C++ standard, which you can purchase online at www.ansi.org (or whatever your national standards body is). Draft copies are available for free, such as the one at http://www.comnets.rwth-aachen.de/doc/c++std.html .

Most other online sources I know of are either incomplete, compiler specific or dead.

Share this post


Link to post
Share on other sites
They don''t have an STL reference there though. Actually, how long has that section been "under construction"? Makes me wonder if they''ll even actually working on it.





--{You fight like a dairy farmer!}

Share this post


Link to post
Share on other sites