Buy new:
-37% $46.90$46.90
Ships from: Amazon Sold by: Chiya Group
Save with Used - Good
$12.18$12.18
Ships from: Amazon Sold by: Zoom Books Company
Return this item for free
We offer easy, convenient returns with at least one free return option: no shipping charges. All returns must comply with our returns policy.
Learn more about free returns.- Go to your orders and start the return
- Select your preferred free shipping option
- Drop off and leave!
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
Programming: Principles and Practice Using C++ 1st Edition
Purchase options and add-ons
The book is primarily designed for people who have never programmed before, and it has been tested with more than 1,000 first-year university students. However, practitioners and advanced students will gain new insight and guidance by seeing how a recognized master approaches the elements of his art.
- ISBN-100321543726
- ISBN-13978-0321543721
- Edition1st
- PublisherAddison-Wesley Professional
- Publication dateJanuary 1, 2008
- LanguageEnglish
- Dimensions7.5 x 2 x 9.5 inches
- Print length1236 pages
There is a newer edition of this item:
Customers who viewed this item also viewed
Editorial Reviews
About the Author
Bjarne Stroustrup is the designer and original implementer of C++, the author ofThe C++ Programming Language, The Annotated C++ Reference Manual, andThe Design and Evolution of C++, and the consulting editor of Addison-Wesley'sC++ In-Depth Series. Having previously worked at Bell Labs and AT&T Labs-Research, he currently is the College of Engineering Chair in Computer Science Professor at Texas A&M University. The recipient of numerous honors, including theDr. Dobb's Excellence in Programming Award (2008), Dr. Stroustrup is a member of the National Academy of Engineering, an AT&T Fellow, an AT&T Bell Laboratories Fellow, an IEEE Fellow, and an ACM Fellow. His research interests include distributed systems, simulation, design, programming techniques, software development tools, and programming languages, and he remains actively involved in the ANSI/ISO standardization of C++. Dr. Stroustrup holds an advanced degree from the University of Aarhus in his native Denmark and a Ph.D. in Computer Science from Cambridge University, England.
Excerpt. © Reprinted by permission. All rights reserved.
—Admiral Farragut
Programming is the art of expressing solutions to problems so that a computer can execute those solutions. Much of the effort in programming is spent finding and refining solutions. Often, a problem is only fully understood through the process of programming a solution for it.
This book is for someone who has never programmed before, but is willing to work hard to learn. It helps you acquire the principles and practical skills of programming using the C++ programming language. My aim is for you to gain sufficient knowledge and experience to perform simple useful programming tasks using the best up-to-date techniques. How long will that take? As part of a first-year university course, you can work through this book in a semester (assuming that you have a workload of four courses of average difficulty). If you work by yourself, don’t expect to spend less time than that (maybe 15 hours a week for 14 weeks).
Three months may seem a long time, but there’s a lot to learn and you’ll be writing your first simple programs after about an hour. Also, all learning is gradual: each chapter introduces new useful concepts and illustrates them with examples inspired by real-world uses. Your ability to express ideas in code — getting a computer to do what you want it to do — gradually and steadily increases as you go along. I never say “learn a month’s worth of theory and then see if you can use it.”
Why would you want to program? Our civilization runs on software. Without understanding software you are reduced to believing in “magic” and will be locked out of many of the most interesting, profitable, and socially useful technical fields of work. When I talk about programming, I think of the whole spectrum of computer programs from personal computer applications with GUIs (Graphical User Interfaces), through engineering calculations and embedded system control applications (such as digital cameras, cars, and cell phones), to text manipulation applications as found in many humanities and business applications. Like mathematics, programming — when done well — is a valuable intellectual exercise that sharpens our ability to think. However, thanks to feedback from the computer, programming is more concrete than most forms of math, and therefore accessible to more people. It is a way to reach out and change the world — hopefully for the better. Finally, programming can be great fun.
Why C++? You can’t learn to program without a programming language and C++ directly supports the key concepts and techniques used in real-world software. C++ is one of the most widely used programming languages, found in an unsurpassed range of application areas. You find C++ applications everywhere from the bottom of the oceans to the surface of Mars. C++ is precisely and comprehensively defined by a non-proprietary international standard. Quality and/or free implementations are available on every kind of computer. Most of the programming concepts that you will learn using C++ can be used directly in other languages, such as C, C#, Fortran, and Java. Finally, I simply like C++ as a language for writing elegant and efficient code.
This is not the easiest book on beginning programming; it is not meant to be. I just aim for it to be the easiest book from which you can learn the basics of real-world programming. That’s quite an ambitious goal because much modern software relies on techniques considered advanced just a few years ago.
My fundamental assumption is that you want to write programs for the use of others, and to do so responsibly providing a decent level of system quality. That is, I assume that you want to achieve a level of professionalism. Consequently, I chose the topics for this book to cover what is needed to get started with real-world programming, not just what is easy to teach and learn. If you need a technique to get basic work done right, I’ll describe it, demonstrate concepts and language facilities needed to support the technique, provide exercises for it, and expect you to work on those exercises. If you just want to understand toy programs, you can get along with far less than I present. On the other hand, I won’t waste your time with material of marginal practical importance. If an idea is explained here, it’s because you’ll almost certainly need it.
If your desire is to use the work of others without understanding how things are done and without adding significantly to the code yourself, this book is not for you. If so, please consider if you would be better served by another book and another language. If that is approximately your view of programming, please also consider from where you got that view and whether it in fact is adequate for your needs. People often underestimate the complexity of programming as well as its value. I would hate for you to acquire a dislike for programming because of a mismatch between what you needed and the part of the software reality I describe. There are many parts of the “Information Technology” world that do not require knowledge of programming. This book is aimed to serve those who do want to write nontrivial programs.
Because of its structure and practical aims, this book can also be used as a second book on programming for someone who already knows a bit of C++ or for someone who programs in another language and wants to learn C++. If you fit into one of those categories, I refrain from guessing how long it will take you to read this book, but I do encourage you to do many of our exercises. This will help you to counteract the common problem of writing programs in older, familiar, styles rather than adopting newer techniques where these are more appropriate. If you have learned C++ in one of the more traditional ways, you’ll find something surprising and useful before you reach Chapter 7. Unless your name is Stroustrup, what I discuss here is not “your father’s C++.”
Programming is learned by writing programs. In this, programming is similar to other endeavors with a practical component. You cannot learn to swim, to play a musical instrument, or to drive a car just from reading a book — you must practice. Nor can you learn to program without reading and writing lots of code. This book focuses on code examples closely tied to explanatory text and diagrams. You need those to understand the ideals, concepts, and principles of programming and to master the language constructs used to express them. That’s essential, but by itself, it will not give you the practical skills of programming. For that, you need to do the exercises and get used to the tools for writing, compiling, and running programs. You need to make your own mistakes, and learn to correct them. There is no substitute for writing code. Besides, that’s where the fun is!
On the other hand, there is more to programming — much more — than following a few rules and reading the manual. This book is emphatically not focused on “the syntax of C++.” Understanding the fundamental ideals, principles, and techniques is essence of a good programmer. Only well-designed code has a chance of becoming part of a correct, reliable, and maintainable system. Also, “the fundamentals” are what lasts: they will still be essential after today’s languages and tools have evolved or been replaced.
What about computer science, software engineering, information technology, etc.? Is that all programming? Of course not! Programming is one of the fundamental topics that underlie everything in computer-related fields and has a natural place in a balanced course of computer science. I provide brief introductions to key concepts and techniques of algorithms, data structures, user interfaces, data processing, and software engineering. However, this book is not a substitute for a thorough and balanced study of those topics.
Code can be beautiful as well as useful. This book is written to help you see that, to understand what it means for code to be beautiful and to help you to acquire the principles and practical skills to create such code. Good luck with programming!
A note to students
Of the 1,000++ first-year students we have taught so far using drafts of this book at Texas A&M University, about 60% had programmed before and about 40% had never seen a line of code in their life. Most succeeded, so you can do it too.
You don’t have to read this book as part of a course. I assume that the book will be widely used for self study. However, whether you work your way through as part of a course or independently, try to work with others. Programming has an — unfair — reputation as a lonely activity. Most people work better and learn faster when they are part of a group with a common aim. Learning together and discussing problems with friends is not cheating! It is the most efficient — as well as most pleasant — way of making progress. If nothing else, working with friends forces you to articulate your ideas, which is just about the most efficient way of testing your understanding and making sure you remember. You don’t actually have to personally discover the answer to every obscure language and programming environment problem. However, please don’t cheat yourself by not doing the drills and a fair number of exercises (even if no teacher forces you to do them). Remember: programming is (among other things) a practical skill that you need to practice to master. If you don’t write code (do several exercises for each chapter), reading this book will become a pointless theoretical exercise.
Most students — especially thoughtful good students — face times where they wonder whether their hard work is worthwhile. When (not if) this happens to you, take a break, re-read the foreword, look at Chapter 1 (“Computers, People, and Programming”) and Chapter 22 (“Ideals and History”). There, I try to articulate what I find exciting about programming and why I consider it a crucial tool for making a positive contribution to the world. If you wonder about my teaching philosophy and general approach, have a look at Chapter 0 (“Notes to the Reader”).
You might find the weight of this book worrying, but it should reassure you that part of the reason for the heft is that I prefer to repeat an explanation or add an example rather than have you search for the one and only explanation. The other major part of the reason is that the last third of the book is “additional material” presented for you to explore only if you are interested in more information about a specific area of programming, such as embedded systems programming, text analysis, or numerical computation.
And please don’t be too impatient. Learning any major new and valuable skill takes time, and is worth it.
A note to teachers
No, this is not a traditional Computer Science 101 course. It is a book about how to construct working software. As such, it leaves out much of what a computer science student is traditionally exposed to (Turing completeness, state machines, discrete math, Chomsky grammars, etc.). Even hardware is ignored on the assumption that students have used computers in various ways since kindergarten. This book does not even try to mention most important CS topics. It is about programming (or more generally about how to develop software) and as such it goes into more detail about fewer topics than many traditional courses. It tries to do just one thing well and Computer Science is not a one-course topic. If this book/course is used as part of a computer science, computer engineering, electrical engineering (many of our first students were EE majors) information science, or whatever program, I expect it to be taught alongside other courses as part of a well-rounded introduction.
Please read Chapter 0 (“Notes to the Reader”) for an explanation of my teaching philosophy, general approach, etc. Please try to convey those ideas to your students along the way.
Product details
- Publisher : Addison-Wesley Professional
- Publication date : January 1, 2008
- Edition : 1st
- Language : English
- Print length : 1236 pages
- ISBN-10 : 0321543726
- ISBN-13 : 978-0321543721
- Item Weight : 4.1 pounds
- Dimensions : 7.5 x 2 x 9.5 inches
- Best Sellers Rank: #1,692,419 in Books (See Top 100 in Books)
- #346 in C++ Programming Language
- #1,379 in Computer Programming Languages
- Customer Reviews:
About the author

Bjarne Stroustrup is the designer and original implementer of C++.
He is a founding member of the ISO C++ standards committee and a major contributor to modern C++.
He worked at Bell Labs and is now a professor at Columbia University and a fellow of Churchill College, Cambridge.
He is a member of the USA National Academy of Engineering, an ACM, IEEE, and CHM Fellow.
He is a recipient of the Draper Prize.
His publication list is as long as your arm. For details, see his home pages (www.stroustrup.com)
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonCustomers say
Customers find the book great for learning real programming, particularly appreciating its extremely detailed coverage of the basics of C++. Moreover, the book receives positive feedback for its presentation, readability, and value for money, with one customer noting its extensive use of color. However, the writing style receives mixed reactions, with some finding it easy to understand while others find it challenging to read. Additionally, the code quality receives criticism, with one customer reporting issues with sample code that wouldn't compile.
AI Generated from the text of customer reviews
Customers find the book excellent for learning real programming, providing extremely detailed explanations of the basics of C++ and helping beginners build strong foundational knowledge.
"...It's a book for non-programmers or beginners to teach them how to program with C++ as the vehicle and it's structured for use as a textbook for a..." Read more
"What can I say? This book is by far the best choice for a "introduction to programming" college class or for self study for anyone serious about..." Read more
"...Other then that it is a good book to learn basic software fundamentals such as "Divide and Conquer" and "Abstraction."..." Read more
"...are organized in such a fashion that key points, terms, and critical concepts are easily identifiable by a color-coded "dot" beside the introducing..." Read more
Customers find the book interesting, with one mentioning it keeps them engaged throughout, and another noting it is entertaining to read.
"...wish to migrate to C++, though they would doubtless find this book interesting and well written...." Read more
"...you are like me and just enjoy writing code, this really keeps you involved in the book if you do the problems...." Read more
"...These are interesting chapters but possibly niche...." Read more
"...So far it seems very interesting and informative. :)" Read more
Customers find the book readable, with one mentioning that each chapter is short and meant to be read in one sitting.
"...I do believe that a clear, immediate, simple even if a bit primitive grasp on a concept is key to fully internalizing it...." Read more
"...This is a challenging book for the true beginner, although not an impossible read...." Read more
"...But the text is not dense so you can actually read chapters fairly quickly. There are 4 parts as follows: 1. Basics 2...." Read more
"...It's entertaining to read and it was written to where each chapter is short and meant to be read in one sitting." Read more
Customers appreciate the book's presentation, with one customer noting its structured textbook format and another highlighting its excellent chapter on vector class design.
"...Notwithstanding the pretty presentation, this book teaches abysmal programming practices, such as blatant and amateurish violations of the Liskov..." Read more
"...Part 3 contains an excellent chapter on designing a vector class, then discusses how the STL vector template solves a lot of the problems...." Read more
"This book is put together well aesthetically, (color) but it says on the back that it is "For Beginners - And anyone who wants to learn something new..." Read more
"...The examples are awesome, the content itself looks great and is structured in such a way that you won't want to immediately close the book just by..." Read more
Customers find the book offers good value for money.
"...It offers depth, clearness, vision, wisdom and raw technical skill far beyond the reach of any of its competitors....." Read more
"...It's a very good value not only for the quantity of content you will receive, but also the quality...." Read more
"Great Price. Great guide/reference. Easy to use and I've learned quite a bit and I am glad I went with this seller. Fast shipping too!" Read more
"Great seller. Great book for a great price." Read more
Customers appreciate the extensive use of color in the book.
"...It is printed on good quality semi-glossy paper and the extensive use of color will remind some of the Deitel & Deitel series, at least..." Read more
"...For a start the book is beautifully presented with color used liberally throughout and even color photographs in places...." Read more
"...The books also uses plenty of color, which is also I think a welcome change (instead of using the dull gray and black fonts)...." Read more
Customers have mixed opinions about the writing style of the book, with some finding it written in a manner that any reader can understand, while others report that it gets too technical.
"...Chapters 6 and 7 are gems. They develop an expression evaluator, walking the student through a tokenizer, parser, and interpreter without bogging..." Read more
"...Stroustrup also does an excellent job of addressing the reader directly in this text...." Read more
"...and that, to me, is the hallmark of a good text...." Read more
"...It is true that the text has many typos and imperfections, as the long errata shows, but being realistic, how many long, clear, detailed, deep..." Read more
Customers criticize the code quality of the book, with one customer reporting that sample code provided will not compile and another noting that it teaches abysmal programming practices.
"...Notwithstanding the pretty presentation, this book teaches abysmal programming practices, such as blatant and amateurish violations of the Liskov..." Read more
"...Not just give syntax rules and useless code snippets on how to make the meow method of a kitten class work, but really how to go through the..." Read more
"...More often than not, you'll find that the sample code provided will not compile - heck, even his own framework will throw a large number of errors..." Read more
"...You will get an error. It's extremely frustrating to be writing code only for it to be wrong considering this is an individual who is suppose to..." Read more
Reviews with images
Not for beginners!
Top reviews from the United States
There was a problem filtering reviews. Please reload the page.
- Reviewed in the United States on December 26, 2008Format: PaperbackVerified PurchaseFor some reasons, I had expected a book on reflections on Stroustrup's philosophy of C++ programming aimed at experienced practitioners. I was quite surprised by the heft of the book, but much more so by the content. It's a book for non-programmers or beginners to teach them how to program with C++ as the vehicle and it's structured for use as a textbook for a first year college course.
Physically, the book is massive, weighing in at over 1200 pages. It is printed on good quality semi-glossy paper and the extensive use of color will remind some of the Deitel & Deitel series, at least superficially.
The prospective student will probably benefit from a comparison of this book to the existing leading tutorial books. The leaders, by popularity or quality, are (in no specific order): Lippman, Lajoie, & Moo's C++ Primer (4th Edition), Eckel's Thinking in C++: Introduction to Standard C++, Volume One (2nd Edition) (Vol 1) and Thinking in C++, Volume 2: Practical Programming, Dietel & Deitel's C++ How to Program (6th Edition), Koenig & Moo's Accelerated C++: Practical Programming by Example (C++ In-Depth Series), Lippman's Essential C++ (C++ In-Depth Series), and Prata's C++ Primer Plus (5th Edition). These all share the common purpose of teaching the C++ language, so an effort is made to cover the features and concepts, with examples that were constructed to illustrate them. This is NOT Stroustrup's approach.
Stroustrup isn't trying to teach the C++ language. He's teaching how to program. C++ is the tool he uses to do so. This isn't a subtle difference. It's the difference between teaching you about a wrench and making up fake car parts to fix with the wrench and teaching you auto repair and giving you a wrench to do so. You still learn the tool as you go along, but it's a side effect.
The overall direction of the book is to teach students how to program solutions to real problems in a way that one would in the real world. Things that other books consider "extraneous to illustrating the principle" aren't swept under the carpet. Inputs are validated. Code is tested. Errors are detected. Exceptions are thrown and caught. They're not incidental details, they're part of the solution, and that's how Stroustrup presents them. Yet, these "details" don't detract from the readability or understandability of the code. In fact, they preempt the stream of "but what about..." questions that students will inevitable have when presented incomplete toy code.
Chapters 6 and 7 are gems. They develop an expression evaluator, walking the student through a tokenizer, parser, and interpreter without bogging the student down with deep theory that will be learned in later courses and is unnecessary to get started (though many will be inspired to go read up on it). Besides showing some interesting and useful techniques, understanding an expression evaluator goes a long way toward understanding programming languages in general.
The discussion on containers and iterators explains how one would go about designing them, not just using them. Once the development of a vector-like container is described, the other standard containers are presented for the student to use. No time is wasted trying to teach data structures, for which other classes and books already exist. The same applies to sorts and other basic algorithms. The standard ones are presented for immediate use by the student.
There are chapters on basic I/O, GUI and graphics (using FLTK), data formatting, and numerical programming (this is my least favorite). There is also some cursory coverage of upcoming C++ features as they are found in boost, such as regular expressions. Because this book deliberately targets beginners, you won't find advanced topics like template metaprogramming. There are entire books (three of them!) dedicated to that.
Finally, there is some brief discussion of the history of C++, on its own and in the context of the evolution of programming languages in general. I would have enjoyed more of this.
If I were to teach a course, this book would be my first choice. A disciplined self-learner would also be well served by this book.
However, it does not try to target those who already know how to program and wish to migrate to C++, though they would doubtless find this book interesting and well written. For them, I would recommend "Accelerated C++" or "Essential C++" to bring them up to speed quickly or ""C++ Primer" to study the language more in depth. For those coming from a language that is conceptually different from C++, the two "Thinking in C++" volumes do a good job of aiding in the paradigm shift. I am deliberately omitting non-tutorial books like the "Effective C++" and "Exceptional C++" series, though they are certainly essential.
Everyone -- beginner and migrating expert -- should avoid C++ How to Program (6th Edition). Notwithstanding the pretty presentation, this book teaches abysmal programming practices, such as blatant and amateurish violations of the Liskov Substitutability Principle.
Naturally, every C++ programmer should own The C++ Programming Language: Special Edition (3rd Edition) and C++ in a Nutshell is a marvelous one-stop reference.
As a side note, there is a long running debate over which language is most suitable for teaching an introduction to programming. C++ is usually one of the first to be eliminated. This book puts C++ back in the running and and shows that it's more about the teacher than it is about the language.
- Reviewed in the United States on October 6, 2009Format: PaperbackVerified PurchaseWhat can I say? This book is by far the best choice for a "introduction to programming" college class or for self study for anyone serious about learning programming. It offers depth, clearness, vision, wisdom and raw technical skill far beyond the reach of any of its competitors..
What really amazes me is that Stroustrup has managed to write a book that's really, essentially about learning what programming is and how to do it best, using C++ just as a useful tool avoiding the trap of cherishing and exalting his "creature" bringing it to center stage and instead letting it do its quiet work in the background.
Seeing someone with caliber, history, skills and reputation of Stroustrup, who could just go on being revered writing highbrow terse articles, taking the time and exercising the patience necessary to write a beginner book is really a testimonial to the value of this guy.
As an added value, his approach contributes to fight off from the very beginning the confusion that exists in many aspiring ( and unfortunately even is some experts..) programmers about knowing a programming language or knowing the art and science of programming. I find it quite ironical that it should be the job of the creator of a language to underline so effectively the difference between a "language lawyer" and a good programmer.
It is true that the text has many typos and imperfections, as the long errata shows, but being realistic, how many long, clear, detailed, deep technical text don't have mistakes? Even here the author deserves some credit for being so strict and efficient on error correction. Some more proofreading would have surely helped anyhow, that s' a fact, but this issue is largely insignificant compared to the overall quality of the text.
There are only two things that I would have loved to see done in a different way. First, I agree with the idea that introducing polymorphism with the classic toy examples reduces the appreciation for its power and usefulness at first, but I think this fault is inevitably and gradually eliminated later on when the students end up applying the concept to more realistic and complex problems. Presenting it while also teaching computer graphics application concepts might end up making polymorphism seem more complex and obscure than what it actually is, unless the student has already been extensively exposed to the graphics techniques that are being used. I do believe that a clear, immediate, simple even if a bit primitive grasp on a concept is key to fully internalizing it.
I also think that using an established and powerful graphics library like OpenGL would have made the computer graphics section much more fascinating and useful.
What else to say, do yourself a favor and read this book. It has something to tell you, even if you are an expert programmer.
And.. ah yes, thanks Bjarne.
- Reviewed in the United States on February 12, 2011Format: PaperbackVerified PurchaseI purchased this book as a beginner/intermediate book on C++. I have read "Programming with C++" by John R. Hubbard and it is an excellent book to read if you understand the syntax of C++ already. Without reading the previous book, I would be completely lost in regard to basic C++, if that were left to Bjarne's explanation. If you are new to programming or C++ this is definitely not the book for you, I recommend one of Brian Overland's books to start learning the basics. Then move onto Hubbard's book, then this book. Bjarne's explanations are terrible if you are a beginner programmer. Other then that it is a good book to learn basic software fundamentals such as "Divide and Conquer" and "Abstraction." If you take one thing out of this review, know that this book is NOT for a beginner.
Top reviews from other countries
Vinoth KumarReviewed in India on October 13, 20181.0 out of 5 stars I was delivered a 180rs book
Format: PaperbackVerified PurchaseI received a someother book named Course on computer concepts. Its cost is 180rs. I paid them around 5k. Its a worst feel when u someother book and u have paid 5k for it. I am so disappointed.
It was sold by USB publisher. Think twice to buy from this publisher.
I received a someother book named Course on computer concepts. Its cost is 180rs. I paid them around 5k. Its a worst feel when u someother book and u have paid 5k for it. I am so disappointed.1.0 out of 5 stars
Vinoth KumarI was delivered a 180rs book
Reviewed in India on October 13, 2018
It was sold by USB publisher. Think twice to buy from this publisher.
Images in this review
-
AlexReviewed in Italy on February 21, 20145.0 out of 5 stars Lettura obbligata per chi è agli inizi
Format: PaperbackVerified PurchaseSe si programma in C++ da meno di 2-3 anni questa è una lettura che oserei definire obbligata in quanto è un concentrato di consigli utili e best practices che in genere richiedono parecchio tempo e tanta esperienza per essere assimilate.
Quando si inizia a programmare, indipendentemente dal linguaggio utilizzato, ci si pone sempre domande del tipo: "E' questo il modo migliore per farlo?", "Cosa comporta questo tipo di scelta?". Questo testo del prof. Stroustrup risponde a queste e ad altre domande.
E' un testo unico nel suo genere ed è uno di quei testi che fa differenza tra un hobbista e un professionista.
Ottimo come secondo testo, potrebbe essere utilizzato anche come primo approccio al linguaggio C++ ma richiederebbe uno sforzo maggiore per assimilare i concetti di base che, in alcuni casi, vengono dati per scontati. Il mio consiglio è di partire con un testo dedicato alle basi e poi passare a questo.
L'inglese utilizzato è abbastanza semplice e scorrevole. La voluminosità a prima vista intimorisce ma non deve ingannare. Escudendo il codice, gli esercizi e le note a fine capitolo saranno meno di 300-400 pagine.
Un paio di piccole pecche:
1- Ogni tanto il prof. Stroustrup si lascia prendere dall'entusiasmo e sforna qualche esempio non proprio semplice da afferrare ad una prima lettura ma niente che comprometta la completa comprensione del testo. Si può benissimo rileggere con calma o passare avanti per poi ritornarci in un secondo momento. Del resto, come ripete lo stesso Stroustrup più volte nel suo libro, si impara anche e sopratutto leggendo il codice altrui. Quindi, per quanto complesso possa essere un esempio di codice, leggerlo e comprenderlo non può che far bene. Detto questo tengo a precisare che la stragande maggiornaza degli esempi di codice proposti è abbastanza banale e facile da capire anche ad una rapida occhiata.
2- Esercizi che definire sbilanciati sarebbe un eufemismo. Si passa da "crea una funzione che somma gli elementi di due vettori" a "implementa un allocatore". Il prof. Stroustrup a volte non conosce mezze misure XD
-
idumeReviewed in France on November 17, 20095.0 out of 5 stars Un des meilleurs livres sur la programmation
Format: PaperbackVerified PurchaseUn livre tout à fait remarquable (écrit par le créateur et l'un des principaux mainteneurs du langage !), qui vous prendra par la main et vous amènera à une connaissance tout à fait élaborée de la programmation en C++.
Ce livre peut être utilisé par ceux qui veulent apprendre seuls et il peut réellement être utilisé ainsi, à condition de prendre la peine de faire systématiquement tous les exercices proposés. Ces exercices constituent l'une des grandes forces de ce livre : il ne s'agit pas seulement d'un livre à lire, mais d'un livre "à faire". Les exercices sont suffisamment nombreux pour être faits tous et pas assez pour décourager par leur quantité. Ils sont remarquablement adaptés au contenu de chaque chapitre. Vous pourrez trouver sur l'excellent site du livre (qui contient notamment aussi des "errata" fort utiles) un certain nombre (régulièrement croissant) d'exercices corrigés.
A noter : il n'est pas du tout nécessaire (ni même peut-être souhaitable !) de connaitre le C pour lire et pratiquer ce livre...
Some BroReviewed in Canada on January 27, 20125.0 out of 5 stars Who better to learn from than the guy that invented C++?
Format: PaperbackVerified PurchaseNot gonna drag on with a long comment. Just gonna say this book is true to its description. Bjorne assumes you know nothing about programming or C++ and takes you from the ground up, even into things like writing components of a compiler which is a pretty advanced topic in programming. I'd recommend this book not only to people who are new but people who already have a background, even in some advanced aspects of programming in C++. I myself have been working with C++ for a little over a year, I've delved into some fairly advanced tasks like writing a cross platform game engine from the bottom up and yet find so much new and valuable information in this book.
A Lazy ReviewerReviewed in Japan on March 21, 20195.0 out of 5 stars Used but came as almost new..
Format: PaperbackVerified PurchaseI bought this book from as used. But it was almost new.
The content of the book is well-known in the programmers community. So I will not review that here. It is one of the best books for learnig C++.






