Standard C++ API

This is a discussion on Standard C++ API within the C++ Programming forums, part of the General Programming Boards category; I am fairly familiar with Java and C# but new to c++. I feel it's very unclear where I should ...

  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    7

    Question Standard C++ API

    I am fairly familiar with Java and C# but new to c++. I feel it's very unclear where I should look for the standard c++ library documents. I found this one , provided by Microsoft, is pretty easy to look up and all the functions seems are well documented, but is it for the standard c++? Where do the experienced c++ programmers normally look for the standard c++ API documentations?

    Another questions is that unlike Java and .Net, there are seems many implemetations of standard c++ library available and I want to know which library should I use If want to write portable code?

    Thanks in advance!

  2. #2
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    There are a few good sites out there for C++ Standard Library documentation:

    SGI
    Dinkum
    Rogue Wave

    A rather nice implementation (in my opinion) of the standard library is STLport, however, assuming you have a modern compiler (GCC with Dev-C++ or VS.NET, etc), using whatever implementation you have will be fine. Be wary of older compilers, though (e.g. VC++6).
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  3. #3
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    ...but is it for the standard c++?
    Yes, that's the standard library.

    If you have MS Visual C++, the help files contain all of the standard library, plus the entire Windows API. When you look-up a function in the help files or on MSDN, it will say ANSI if its a standard library function.

    For the "ultimate" reference, you can download the C and C++ language standards in PDF format from ANSI for about $20 each. You need both, because the C++ standard refers-back to the C Standard. (By ultimate, I'm not saying easy to use or easy to understand! )

  4. #4
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    If you are interested in making the best use of STL, then Effective STL is one of the better books that I have found.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  5. #5
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    Effective STL is a good book but I would read this first
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  6. #6
    Registered User
    Join Date
    Jan 2005
    Posts
    7,317
    I rarely look online for standard library documentation. I almost always pull out Josuttis' book (linked to by Stoned_Coder) first.

  7. #7
    Registered User
    Join Date
    Jun 2005
    Posts
    6,193
    Quote Originally Posted by DougDbug
    For the "ultimate" reference, you can download the C and C++ language standards in PDF format from ANSI for about $20 each. You need both, because the C++ standard refers-back to the C Standard.
    Not quite.

    The C++ standard refers back to the 1989 (1990?) C standard (which costs closer to US$200.

    The 1999 C standard is not referred to by the current C++ standard (although it may be referred to by a future version of that standard).

  8. #8
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    Quote Originally Posted by grumpy
    The C++ standard refers back to the 1989 (1990?) C standard (which costs closer to US$200.
    It qualifies as an antique, eh?
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  9. #9
    Registered User
    Join Date
    Jun 2005
    Posts
    6,193
    The original C standard is aging a bit. Whether you'd say that was a "past era" is debatable. Compilers that support C99 are a bit less common than those that support C89 or C++.

    The reason for the price difference, BTW, is political, and not related to it's age. The cost of the original C standard was always up there in price. The C++ standard was released originally for $18, and [as I understand it] the low price of the C standard was in response to that.

  10. #10
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    Yeah... my comment was just a joke about the price.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Windows API
    By valaris in forum Windows Programming
    Replies: 7
    Last Post: 08-01-2008, 12:37 AM
  2. Time-of-Day Functionality WITHOUT Standard Libs
    By JDGATX in forum C Programming
    Replies: 6
    Last Post: 03-11-2008, 09:43 AM
  3. Replies: 8
    Last Post: 03-08-2008, 07:50 PM
  4. platform specific API or C standard API
    By George2 in forum C Programming
    Replies: 1
    Last Post: 11-12-2007, 12:32 AM
  5. standard language, standard compiler?
    By doubleanti in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 09-03-2001, 04:21 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21