Thread: C++ How to Program 3th Ed by Deitel and Deitel

  1. #1
    C++ SharK The SharK's Avatar
    Join Date
    Mar 2004
    Location
    Denmark
    Posts
    62

    Question C++ How to Program 3th Ed by Deitel and Deitel

    Hi

    I would like to know, if the book:
    "C++ How to Program 3th Ed by Deitel and Deitel"
    is up to date, enough to learn C++

    regards,

    The SharK
    Studying programming languages,
    you'll ALWAYS be a student ;-)

  2. #2
    Registered User
    Join Date
    Apr 2003
    Posts
    2,663
    My advice: never buy an old edition.

  3. #3
    Bond sunnypalsingh's Avatar
    Join Date
    Oct 2005
    Posts
    162
    If you want you can download a very nice ebook.....Thinking in C++ by Bruce Eckel-2nd Edition

    http://www.click-now.net/ebooks.htm

  4. #4
    C++ SharK The SharK's Avatar
    Join Date
    Mar 2004
    Location
    Denmark
    Posts
    62
    But you see, I have the book already...
    Studying programming languages,
    you'll ALWAYS be a student ;-)

  5. #5
    Registered User
    Join Date
    Apr 2003
    Posts
    2,663
    Get a new one. You'll need at least two anyway.

  6. #6
    Bioport Productions
    Join Date
    Oct 2005
    Posts
    215
    I learned C++ straight from tutorials on the internet, I found that the best way to go because you can get so many different perspectives on the subject, not just 1 author. After you learn the basics you can get books on certain categories of programming, tutorials start to run slim after the basics and you really need a professional's guidance then anyway. My suggestion: Don't buy another book, search google.com for tutorials and check out www.programmingtutorials.com. They have a lot of tutorials on almost every up to date programming language.
    -"What we wish, we readily believe, and what we ourselves think, we imagine others think also."
    PHP Code:
    sadf 

  7. #7
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    I don't own a copy, but the Deitel and Deitel book has a very good reputation. And, it seems to be used in some university courses.

    It's an expensive book and since you already own it, you would probably get more for your money if you bought one or two additional different books. I wouldn't suggest buying an updated revision unless you really like the book.

    C++ is fairly stable. You won't generally learn anything "wrong" by using an outdated book. However, there are a couple of things to look out for -

    Some older books (and the cprogramming.com tutorial) don't cover namespaces. At the beginning of the examble programs, you should see:
    using namespace std;

    Or, the cout statement should include std like this:
    std::cout << "Hello" << std::endl;

    And, some older books (and again the tutorial on this site) use the old C .h headers.

    The include statements should look like this:
    #include <iostream>

    NOT like this:
    #include <iostream.h>

    As long as you're aware of those two things, an "outdated" book shouldn't give you any trouble.

    Thinking In C++ is a great set of books (I liked them so much I bought the hard-copies), but they're not for beginners unless you already know C.

  8. #8
    C++ SharK The SharK's Avatar
    Join Date
    Mar 2004
    Location
    Denmark
    Posts
    62
    Thanks DougDbug !

    very informative
    Studying programming languages,
    you'll ALWAYS be a student ;-)

  9. #9
    C++ SharK The SharK's Avatar
    Join Date
    Mar 2004
    Location
    Denmark
    Posts
    62
    Hi DougDbug

    It makes use of:
    #include <iostream>

    The book covers:
    using namespace std;
    but only for a few pages out of 1200.

    The other pages uses:
    using std::cout;
    using std::endl;

    and i.e.

    cout << y << endl;
    Studying programming languages,
    you'll ALWAYS be a student ;-)

  10. #10
    Registered User
    Join Date
    Jan 2005
    Posts
    7,366
    That's fine. It is standard and works just as well.

    Another thing that is open to debate that you might want to watch out for is whether the book uses C style and techniques or C++ style and techniques. While that book doesn't have a bad reputation, many C++ beginner books teach "C with classes" instead of C++.

    For example, you should be using the C++ string class and the C++ vector class instead of null-terminated character arrays and regular arrays. If the book doesn't spend much time on those, or uses other C style code, consider learning those things from another source as you continue in C++.

  11. #11
    Bond sunnypalsingh's Avatar
    Join Date
    Oct 2005
    Posts
    162
    Quote Originally Posted by The SharK
    Hi DougDbug
    It makes use of:
    #include <iostream>

    The book covers:

    using namespace std;
    but only for a few pages out of 1200.

    The other pages uses:
    using std::cout;
    using std::endl;
    and i.e.
    cout << y << endl;
    Of course a better recommendation would be either explicitly qualifying names that you intend to use with a using declaration:
    Code:
    using std::cout;
    or with every use:
    Code:
    std::cout<<"blah blah"<<std::endl;
    The using directive is no better than how iostream.h leaves every name in the global namespace.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ How to Program by Deitel and Deitel
    By Thantos in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 07-24-2004, 02:29 AM
  2. How to Program (Third Edition) by Deitel
    By iwod in forum C Programming
    Replies: 2
    Last Post: 07-31-2003, 02:03 PM