473,398 Members | 2,389 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

I'm a beginner of c++,can anyone recommend some books?


I've just finished the K&R c, And begin to study c++ myself,so can
anyone give me some advice?such as some books to read,and something to
notice?

Thank you very much.

Sep 8 '07 #1
6 2450
On 2007-09-08 16:10, Solo.Wolve wrote:
I've just finished the K&R c, And begin to study c++ myself,so can
anyone give me some advice?such as some books to read,and something to
notice?
Accelerated C++ by Koenig and Moe is a good introduction to C++ which
will get you into the C++ way of thinking quickly. The book Thinking in
C++ by Eckel is available for free on his site.

Something to notice: C++ is not C, while they got a common ancestry they
are two very different programming languages and the C way of doing
things is often not a good way of doing things in C++. In other words,
learning C++ with a C background is not so much about learning new a
syntax but about learning a new way of thinking.

--
Erik Wikström
Sep 8 '07 #2
On Sep 8, 10:10 am, "Solo.Wolve" <wangli...@gmail.comwrote:
I've just finished the K&R c, And begin to study c++ myself,so can
anyone give me some advice?such as some books to read,and something to
notice?

Thank you very much.

If your familiar with C, The C++ Programming Language by Bjarne
Stroustrup is a good reference. My top 5 is as follows:

1) The C++ Programming Language by Bjarne Stroustrup
Good reference for the core language and even most of the standard
library. Lots of helpful tips as well. Slightly disorganized. I don't
recommend reading it cover-to-cover, just use the index.

2) The C++ Standard Library : A Tutorial and Reference by Nicolai M.
Josuttis
Probably the best reference for the standard library. Again, not the
best to read cover-to-cover.

3) C++ Templates : The Complete Guide by Jousuttis and Vandevoorde
The one-stop-shop for everything templates. Especially recommended
for those who want to gain deeper knowledge of generic programmer
(also recommended for those who are trying to decipher boost::mpl ><)

4) Modern C++ Design : Generic Programming and Design Pattern Applied
(Alesandrescu)
Great book. I think of it as a "bag of tricks" except that all the
tricks are already implemented in boost (and if boost isn't your cup
of tea, Loki is freely available as well which is based off the code
in this book). Recommended if you want to step out of novice-land and
stick your foot in the door leading to the bizarre world of expert-
land.

Last, but not least...

5) ISO/IEC 14882:2003 Programming Language C++
Big. Verbose. The words look like English, but I have no idea what
language they actually are (read: extremely technical and precise). If
this can't answer a core-language question, either a) you've given up
trying to understand the definitions (which for me is quite often the
case) or b) your compiler has non-standard extensions or does not
fully comply with the standard.

Chris

Sep 8 '07 #3
Chris Fairles wrote:
On Sep 8, 10:10 am, "Solo.Wolve" <wangli...@gmail.comwrote:
>I've just finished the K&R c, And begin to study c++ myself,so can
anyone give me some advice?such as some books to read,and something to
notice?
>
1) The C++ Programming Language by Bjarne Stroustrup
2) The C++ Standard Library : A Tutorial and Reference by Nicolai M.
Josuttis
3) C++ Templates : The Complete Guide by Jousuttis and Vandevoorde
4) Modern C++ Design : Generic Programming and Design Pattern Applied
(Alesandrescu)
5) ISO/IEC 14882:2003 Programming Language C++

With the exception of Josuttis(2), I wouldn't recommend *ANY* of those
as instruction for a self-professed beginner.

For a beginner, I'd recommend either Accelerated C++ (Koenig and Moo),
or C++ Primer 4ed (Lippman, Lajoie, and Moo).
Sep 8 '07 #4
On Sep 8, 11:10 am, "Solo.Wolve" <wangli...@gmail.comwrote:
I've just finished the K&R c, And begin to study c++ myself,so can
anyone give me some advice?such as some books to read,and something to
notice?

Thank you very much.
If you're *really* willing to put some effort in learning C++, I
recommend The C++ Programming Language by Bjarne Stroustrup (which is,
again, the creator of the language). It's nothing like The C
Programming language, it covers almost all subjects of C++ programming
and might be slightly complicated to understand to the uninitiated.
Another excellent suggestion is the Think in C++ books which can be
downloaded for free from www.mindview.net (starting, of course, with
volume 1).

Sep 9 '07 #5

"Solo.Wolve" <wa*******@gmail.comwrote in message
news:11**********************@57g2000hsv.googlegro ups.com...
>
I've just finished the K&R c, And begin to study c++ myself,so can
anyone give me some advice?such as some books to read,and something to
notice?

Thank you very much.

I really like Scott Meyer's books "Effective C++" and "More Effective C++" .
You'll need to understand a bit of C++ to make sense of the books,
but they are packed with useful tips and ideas. In the same series, Herb
Sutter's books "Exceptional C++" and "More Exceptional C++" are good too,
but you probably need to master a bit more C++ to get into them. Punch in
the code from these books and analyze what going on, that's my advice.
I also like "C++ Gotchas" by Dewhurst, this also is a bit advanced, but if
you go through the examples you should "get it".

The benefit of using these advanced books early is you learn "the right
way", rather than finding that out many years from now.
Stroustrups book is excellent, but not very good to learn C++ from. I
think Stan Lipman's book "C++ Primer" might be a bit better organized for a
beginner.

C++ is hard, there's a lot to take in, don't get frustrated. You're lucky in
that the literature is a lot better than 10-15 years ago, everybody was
finding their way then.
dave
Sep 9 '07 #6
On Sep 8, 9:55 pm, red floyd <no.s...@here.dudewrote:
Chris Fairles wrote:
On Sep 8, 10:10 am, "Solo.Wolve" <wangli...@gmail.comwrote:
I've just finished the K&R c, And begin to study c++ myself,so can
anyone give me some advice?such as some books to read,and something to
notice?
1) The C++ Programming Language by Bjarne Stroustrup
2) The C++ Standard Library : A Tutorial and Reference by Nicolai M.
Josuttis
3) C++ Templates : The Complete Guide by Jousuttis and Vandevoorde
4) Modern C++ Design : Generic Programming and Design Pattern Applied
(Alesandrescu)
5) ISO/IEC 14882:2003 Programming Language C++
With the exception of Josuttis(2), I wouldn't recommend *ANY* of those
as instruction for a self-professed beginner.
For a beginner, I'd recommend either Accelerated C++ (Koenig and Moo),
or C++ Primer 4ed (Lippman, Lajoie, and Moo).
Sort of agreed. Different people react differently to different
styles, and many might find Stroustrup very readable as well,
especially if they are already familiar with the style of his
mentors (Kernighan and Richie). The Josuttis and Vandevoorde is
also very readable, but it definitly supposes that you already
know basic C++; I would recommend NOT trying to write your own
templates before having read it, however.

And very soon after the first introductory text, Scott Meyer's
books are a definite must.

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

Sep 9 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Gerry | last post by:
Hi, Im starting to learn C++ and am looking to get myself a textbook to help me along. Can anyone on here recommend a book which will give me good foundations and take me up to OOP etc in...
5
by: Richard B. Kreckel | last post by:
Hi! I was recently asked what book to recommend for a beginner in C++. I am convinced that you needn't study C in depth before learning C++ (though it helps), but cannot find any beginner's...
3
by: jacksonaaronc | last post by:
Greetings, I am in need of two things. First, I need a list of good resources for someone that wishes to learn XML. If there are any defacto books, URL, etc I would love to know where to...
5
by: Panama Red | last post by:
I would like to learn to program in c++ on Linux and AIX systems...mainly socket and fifo type stuff. Can someone recommend a book for someone with experience only with Perl, shell, and Pick/Basic...
2
by: Bruce Dodds | last post by:
I will be doing an app for a nonprofit. It would be useful for them to have a good entry-level book on Access so that they don't have to pay someone to design all their queries and reports. I'm not...
9
by: me | last post by:
Hi All, I am new to Classes and learniing the ropes with VB.NET express Here's my question - say I have a want to manage a list of books. Each book has an Author, Title and ISBN Now, I am...
5
by: macca | last post by:
Hi, I'm looking for a good book on PHP design patterns for a OOP beginner - Reccommendations please? Thanks Paul
9
by: Daniel | last post by:
Looking to see if anyone can offer some suggestions on some good VB.net books? looking for beginner to intermidiate and to expert.. Any suggestions? -- ASP, SQL2005, DW8 VBScript
22
by: ddg_linux | last post by:
I have been reading about and doing a lot of php code examples from books but now I find myself wanting to do something practical with some of the skills that I have learned. I am a beginner php...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.