I am a computer science major and I have been programming in java for 3 year. Does anyone know a good book to learn c++ for me?
thanks
I am a computer science major and I have been programming in java for 3 year. Does anyone know a good book to learn c++ for me?
thanks
Search the board for "good book".
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
It depends on how much time you want to commit to learning it.
1) Easy overview: "C++: A Beginner's Guide"
2) More challenging but relatively short: "Accelerated C++"
3) Comprehensive, challenging, and well written: "Ivor Horton's Beginning C++" (skip the binary operator section in Chapter 3, which in my opinion is too challenging for beginners).
Accelerated C++ is recommended by many C++ experts, especially for someone who has been programming already. It teaches C++ style C++ instead of C style C++. Look at that one first.
C++ Primer is also commonly recommended by C++ experts.
Sams Teach Yourself C++ in 21 Days is commonly un-recommended.
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
Beginning C++ Game Programming is extremly good and a C/C++ Programming refrence third addition is great as well
As Dwks alluded to, this is a topic that comes up an awful lot. There is a link to the ACCU book reviews section in the FAQ. Unfortunately, it is buried in the FAQ > Other references > Misc reference sites section. There is also a small book review on this site (on the left hand navigation bar of the main FAQ page.
@ The mods
Since this question comes up so often, is there any chance of having the FAQ modified so that the two links to the book reviews could be made a little more conspicuous?
I havent read to many C++ books, but try C++ without fear by Brian Overland. It explains alot of code, and it also explains some stuff onhow your cpu interprets code.
"thinking in c++" by bruce eckel is an excellent reference.. check out vol 1 and 2..
it is easily found with a little searching..
I've seen many, many recommendations for Sam's Teach Yourself C++ in 21 days. Personally, I started with that book and then threw it in the trash after a few chapters. However, several newer editions have been published since the time I purchased it, so maybe it's been improved and the people that recommend it know what they are talking about.As Dwks alluded to, this is a topic that comes up an awful lot. There is a link to the ACCU book reviews section in the FAQ.
However, if you read enough of these threads you will realize that every book is recommended by someone, and every book has its detractors.
Last edited by 7stud; 12-30-2005 at 09:20 PM.
>> FWIW
Consider adding C++ Coding Standards to that list. It is by Sutter and Alexandrescu, and has an excellent compilation and mini-discussion of many of the topics discussed in greater detail in the other books. It is not a coding standards book, but rather a guide to best practices in C++ code and would fit perfectly as an introduction or summary of many of the other books on that list (after Accelerated C++).
thanks for all the replies
Demistyfied C++
Sorry for spelling errors, not English!
xxxrugby: "All Human Race Will Die From My Hand!"
xxxrugby: "We are all philosophers, when question is about politics!"