Best compiler for c++ primer plus?

Hi,

im learning c++ right now from the book c++ primer plus and I am using dev c++ to practice the examples from the book, but the problem is that I get a lot of errors when i type the examples. Do i need a different compiler?

Regards,

Wasi
Dev C++ is fine if you are using latest Orwell version and not outdated Bloodshed one.

But C++ Primer Plus (do not confuse with C++ Primer which is a great book) is notoriously bad. I would not be surprised if there are errors in code:

Leaving aside the typos that litter the code, this book is ill conceived and poorly implemented. The author just throws things in because he knows about them without any coherent plan. There is no sense of structured learning here, and no sense of modern C++. He does not know what is new and what is not. He seems to have no understanding of the difference between the C and the C++ header names and calmly #include's such things as cstdlib after his using namespace std. No doubt that is the principle reason he advises readers that their compiler may need them to use the older stdlib.h header. He also places using namespace std in global scope in header files; completely unacceptable.
http://accu.org/index.php?module=bookreviews&func=search&rid=1744

C++ Primer 5th Edition (Lippman, Lajoie, and Moo) is a good book for a beginner.
C++ Primer Plus 6th Edition (Prata) is a bad book for anyone.
http://www.cplusplus.com/forum/beginner/106097/#msg573794

The quality of the paper is neither here no there - the content is what matters, and in the case of C++ Primer Plus, the content is crap.
http://www.reddit.com/r/learnprogramming/comments/1ca7ri/quick_question_for_anyone_who_owns_c_primer_plus/
Topic archived. No new replies allowed.