Live data from Hacker News

The Rook's Guide to C++

rooksguide.org

31–33 of 33 posts

Re: The Rook's Guide to C++

#31

Earlier quoted context omitted.

Agreed. Anything less than C++11 is, IMHO, obsolete and should not be taught to beginners anymore. C++11 is also much more pleasant to work in.

I would even drop the "C++11" reference and just keep refering to it as C++. Maybe just mention in the forewords that you need a C++11/14 compiler.

I agree with this. I only mentioned "C++11" in my comment so that its clear what I'm referring to.

Re: The Rook's Guide to C++

#32
post #19
post #14

I have found a mistake: In table 9.1 of chapter 9 "Data types and Conversion" you wrote that the char data type ranges from -128 to 127, but that's not true, because the standard doesn't say that a char is signed or unsigned, it depends on the implementation. A char can be an unsigned char and in that case it will range from 0 to 255.

Thanks, I'll add it to the tracker.

A char also isn't guaranteed to be 8 bits. POSIX requires it, but in ISO C++, a char can be as large as a long long int (http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n333..., section 3.9.1, paragraph 2)

Re: The Rook's Guide to C++

#33
post #6

C++ is a programming language that is used in modern applications primarily for low level tasks like hardware interaction/embedded, games etc. This involves much dedication while learning, and a proper coverage of computer architecture aspects. This is why I do not see much point in learning C++ in a "For Rookies" way "in 21 days". If you want to be a C++ programmer, go find a good introductory C book which properly…

Schildt's book is riddled with errors.
Post reply on HN