How people look up C++

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Eurig Jones

    How people look up C++

    As i've just started C++ and being quite experienced with a similar OOP
    language such as Java, i'm used to Java's online class library reference
    which is basicaly my bible when I'm coding whether its Java's standard
    routines or extras such as Java 3D. I was wondering if there was anything
    similar available, if not, how do you look up something? whats the best book
    to get as a look up book for the standard libraries?

    --
    ------------------------------
    E u r i g J o n e s
    ------------------------------


  • Kevin Goodsell

    #2
    Re: How people look up C++

    Eurig Jones wrote:
    [color=blue]
    > As i've just started C++ and being quite experienced with a similar OOP
    > language such as Java, i'm used to Java's online class library reference
    > which is basicaly my bible when I'm coding whether its Java's standard
    > routines or extras such as Java 3D. I was wondering if there was anything
    > similar available, if not, how do you look up something? whats the best book
    > to get as a look up book for the standard libraries?
    >[/color]

    For the standard library one of the best books available is "The C++
    Standard Library: A Tutorial and Reference" by Nicolai Josuttis. This is
    *only* a library reference though - it contains little about the
    language itself. It also doesn't cover the C library that was inherited
    by C++, so that can be a bit of a problem. I usually pull out K&R2 ("The
    C Programming Language" 2nd edition, Kernighan & Ritchie) to look up C
    functions - but even this is missing some (those that were added with
    Normative Addendum 1 in 1995, dealing mostly with wide and multi-byte
    characters and strings).

    Alternatively, you could get a copy of the C++ standard. Last I heard
    you could buy and download an electronic copy from the ANSI store for
    $18US. Drafts are also available for free on the C++ committee's web
    page. The November 1997 draft (the latest one that's available, as far
    as I have been able to determine) can be found in html format here:



    Finally, Dinkumware (http://www.dinkumware.com/) has online references
    for C and C++. You'll get an occasional nag screen while browsing, and
    there's a strict license that prevents you from saving the pages for
    later use. You can also purchase a copy of their reference.

    -Kevin
    --
    My email address is valid, but changes periodically.
    To contact me please use the address from a recent posting.

    Comment

    • Jonathan Turkanis

      #3
      Re: How people look up C++


      "Kevin Goodsell" <usenet1.spamfr ee.fusion@never box.com> wrote in
      message news:R6hRb.2789 4$1e.10674@news read2.news.pas. earthlink.net.. .[color=blue]
      > Eurig Jones wrote:
      >[color=green]
      > > As i've just started C++ and being quite experienced with a[/color][/color]
      similar OOP[color=blue][color=green]
      > > language such as Java, i'm used to Java's online class library[/color][/color]
      reference[color=blue][color=green]
      > > which is basicaly my bible when I'm coding whether its Java's[/color][/color]
      standard[color=blue][color=green]
      > > routines or extras such as Java 3D. I was wondering if there was[/color][/color]
      anything[color=blue][color=green]
      > > similar available, if not, how do you look up something? whats the[/color][/color]
      best book[color=blue][color=green]
      > > to get as a look up book for the standard libraries?
      > >[/color]
      >
      > For the standard library one of the best books available is "The C++
      > Standard Library: A Tutorial and Reference" by Nicolai Josuttis.[/color]
      This is[color=blue]
      > *only* a library reference though - it contains little about the
      > language itself. It also doesn't cover the C library that was[/color]
      inherited[color=blue]
      > by C++, so that can be a bit of a problem. I usually pull out K&R2[/color]
      ("The[color=blue]
      > C Programming Language" 2nd edition, Kernighan & Ritchie) to look up[/color]
      C[color=blue]
      > functions - but even this is missing some (those that were added[/color]
      with[color=blue]
      > Normative Addendum 1 in 1995, dealing mostly with wide and[/color]
      multi-byte[color=blue]
      > characters and strings).
      >
      > Alternatively, you could get a copy of the C++ standard. Last I[/color]
      heard[color=blue]
      > you could buy and download an electronic copy from the ANSI store[/color]
      for[color=blue]
      > $18US. Drafts are also available for free on the C++ committee's web
      > page. The November 1997 draft (the latest one that's available, as[/color]
      far[color=blue]
      > as I have been able to determine) can be found in html format here:
      >
      > http://std.dkuug.dk/jtc1/sc22/wg21/d.../html/nov97-2/
      >
      > Finally, Dinkumware (http://www.dinkumware.com/) has online[/color]
      references[color=blue]
      > for C and C++. You'll get an occasional nag screen while browsing,[/color]
      and[color=blue]
      > there's a strict license that prevents you from saving the pages for
      > later use. You can also purchase a copy of their reference.
      >[/color]

      This is all correct. I just want to add that if you've just started le
      arning C++, you definitely do not want to use the standard as your
      reference, as it is written in very technical language and has more
      detail than the beginner needs.

      But it is good to get a copy of the standard. At this late date, I
      would not recommend the draft standard. As of several weeks ago, the
      version of the standard available at the ANSI store had some
      formatting problems (no table of contents, no hyperlinks); a correct
      version is available at



      Jonathan


      Comment

      • Corno

        #4
        Re: How people look up C++


        "Eurig Jones" <mail@glynavenu e.demon.co.ukno spam> wrote in message
        news:bv45ct$4is $1$8300dec7@new s.demon.co.uk.. .[color=blue]
        > As i've just started C++ and being quite experienced with a similar OOP
        > language such as Java, i'm used to Java's online class library reference
        > which is basicaly my bible when I'm coding whether its Java's standard
        > routines or extras such as Java 3D. I was wondering if there was anything
        > similar available, if not, how do you look up something? whats the best[/color]
        book[color=blue]
        > to get as a look up book for the standard libraries?
        >[/color]
        As I came from Java myself, I understand your question completely.
        What I found out is that this is one of the fundamental differences between
        java and C++; Where java has an big collection of libraries in the standard,
        it's very useful to have the class library reference online.
        C++ in essence only has the (very powerfull) standard template library (STL)
        in the standard. For this, the URL you are looking for is


        However, you will likely need a lot of non standard (proprietary) libs.
        Consequently, the documentation of these libraries vary. For example, if
        you're going to program on windows using either the win32 api or MFC, you
        will find the information quite well documented in the MSDN library,
        etcetera.

        The links given to you in the other messages are not the equivalents of the
        class library reference of java for looking up functions but are useful
        tools for more insight in the language and the STL.

        HTH,

        Corno


        Comment

        • Kevin Goodsell

          #5
          Re: How people look up C++

          Corno wrote:
          [color=blue]
          > C++ in essence only has the (very powerfull) standard template library (STL)
          > in the standard. For this, the URL you are looking for is
          > http://www.sgi.com/tech/stl/[/color]

          I'm not sure if this is *the* STL or not, but you should be aware that
          "STL" is technically the name of a library which part of the C++
          standard library was based on. So there are some differences between STL
          and the C++ standard library. Even though the 'S' stands for "standard",
          the STL library is not part of the standard (though something similar is).

          People tend to use the term "STL" for the C++ standard library, but it's
          less ambiguous to just call it "the C++ standard library".

          My concern is that the link above might not describe the C++ standard
          library, but something similar, making it misleading. I don't know for
          sure whether this is the case or not.

          -Kevin
          --
          My email address is valid, but changes periodically.
          To contact me please use the address from a recent posting.

          Comment

          • Jonathan Turkanis

            #6
            Re: How people look up C++


            "Kevin Goodsell" <usenet1.spamfr ee.fusion@never box.com> wrote in
            message news:48iRb.2861 5$zj7.1595@news read1.news.pas. earthlink.net.. .[color=blue]
            > Corno wrote:
            >[color=green]
            > > C++ in essence only has the (very powerfull) standard template[/color][/color]
            library (STL)[color=blue][color=green]
            > > in the standard. For this, the URL you are looking for is
            > > http://www.sgi.com/tech/stl/[/color]
            >
            > I'm not sure if this is *the* STL or not, but you should be aware[/color]
            that[color=blue]
            > "STL" is technically the name of a library which part of the C++
            > standard library was based on. So there are some differences between[/color]
            STL[color=blue]
            > and the C++ standard library. Even though the 'S' stands for[/color]
            "standard",[color=blue]
            > the STL library is not part of the standard (though something[/color]
            similar is).

            To clarify a bit ...

            SGI STL contains some templates and concepts which are not part of the
            standard, such as hash containers, ropes, trivial iterators, ... .

            Some people draw a distinction between STL and the version of the
            original STL which was incorporated into the standard. A more
            important distinction is between that part of the STL which is now
            standard (let's call it 'STL') and the standard library as a whole.
            The standard library contains elements, notably standard C headers and
            the IOStreams library, which are not part of the STL under any
            definition.

            Jonathan


            Comment

            • MPBroida

              #7
              Re: How people look up C++

              Kevin Goodsell wrote:[color=blue]
              >
              > Eurig Jones wrote:
              >[color=green]
              > > As i've just started C++ and being quite experienced with a similar OOP
              > > language such as Java, i'm used to Java's online class library reference
              > > which is basicaly my bible when I'm coding whether its Java's standard
              > > routines or extras such as Java 3D. I was wondering if there was anything
              > > similar available, if not, how do you look up something? whats the best book
              > > to get as a look up book for the standard libraries?
              > >[/color]
              >
              > For the standard library one of the best books available is "The C++
              > Standard Library: A Tutorial and Reference" by Nicolai Josuttis. This is
              > *only* a library reference though - it contains little about the
              > language itself. It also doesn't cover the C library that was inherited
              > by C++, so that can be a bit of a problem. I usually pull out K&R2 ("The
              > C Programming Language" 2nd edition, Kernighan & Ritchie) to look up C
              > functions - but even this is missing some (those that were added with
              > Normative Addendum 1 in 1995, dealing mostly with wide and multi-byte
              > characters and strings).[/color]

              A very good book on the C Standard Library is:
              The Standard C Library
              by P.J. Plauger

              My copy is from 1992, but it's still a very good book.
              It gives you enough info that you could implement all
              of the library functions yourself.

              Mike

              Comment

              • Jonathan Turkanis

                #8
                Re: How people look up C++


                "MPBroida" <mbroida@fake.d omain> wrote in message
                news:4016CD77.A F9ED5E2@fake.do main...[color=blue]
                > Kevin Goodsell wrote:[/color]
                [color=blue]
                >
                > A very good book on the C Standard Library is:
                > The Standard C Library
                > by P.J. Plauger
                >
                > My copy is from 1992, but it's still a very good book.
                > It gives you enough info that you could implement all
                > of the library functions yourself.
                >[/color]

                I use this one too.

                BTW, I would steer clear of "The C++ Standard Template Library", by
                Plauger, Stepanov, Lee and Musser -- despite its list of distinguished
                authors. Josuttis is much better.

                Jonathan


                Comment

                Working...