- Amazon Student members save an additional 10% on Textbooks with promo code TEXTBOOK10. Enter code TEXTBOOK10 at checkout. Here's how (restrictions apply)
Accelerated C++: Practical Programming by Example Paperback – Aug 14 2000
Special Offers and Product Promotions
Frequently Bought Together
Customers Who Bought This Item Also Bought
No Kindle device required. Download one of the Free Kindle apps to start reading Kindle books on your smartphone, tablet, and computer.
To get the free app, enter your e-mail address or mobile phone number.
If you don't have a lot of time, but you still want to learn the latest in C++, you don't have to learn C first. You might learn more by digging into existing language features and classes from the very beginning. That's the approach offered by Accelerated C++, a text that delves into more advanced C++ features like templates and Standard Template Library (STL) collection classes early on. This book can arguably get a motivated beginning programmer into C++ more quickly than other available tutorials.
What separates this title from the rest of the pack is that it jumps right in with samples that take advantage of today's Standard C++, from streams to built-in container classes such as vectors and linked lists. Early examples are more complex than in other books, but the thoroughness and relaxed pace of the explanations will bring the novice up to speed. (Though it ships at a slender 350 pages, Accelerated C++ is packed with samples, tips and example problems--about 10 per chapter.)
After a tour of basic C++, the book looks at more advanced C++ features such as templates, including built-in support for containers. Besides tapping the strength of Standard C++, you will also learn to design with your own templates. (Other tutorials would defer this material until later on.) The authors have tested the approach in the book in their own teaching and have honed a set of worthwhile examples that will help anyone get familiar with these powerful language features. All examples make use of the command line and console (without GUI programs), but the advantage is that this code should run on any of today's operating systems and compilers. Later sections cover the basics of class design, including good coverage of operator overloading and inheritance.
With its innovative approach to teaching the language, Accelerated C++ will challenge readers in the right way. It suggests you don't need to learn C to be productive in C++. Written in an approachable style, it deserves a close look from any C++ novice. --Richard Dragan
From the Inside Flap
A new approach to C++ programming
We assume that you want to learn quickly how to write useful C++ programs. Therefore, we start by explaining the most useful parts of C++. This strategy may seem obvious when we put it that way, but it has the radical implication that we do not begin by teaching C, even though C++ builds on C. Instead, we use high-level data structures from the start, explaining only later the foundations on which those data structures rest. This approach lets you to begin writing idiomatic C++ programs immediately.
Our approach is unusual in another way: We concentrate on solving problems, rather than on exploring language and library features. We explain the features, of course, but we do so in order to support the programs, rather than using the programs as an excuse to demonstrate the features.
Because this book teaches C++ programming, not just features, it is particularly useful for readers who already know some C++, and who want to use the language in a more natural, effective style. Too often, people new to C++ learn the language mechanics without learning how to apply the language to everyday problems.
Our approach works--for beginners and experienced programmers
We used to teach a week-long intensive C++ course every summer at Stanford University. We originally adopted a traditional approach to that course: Assuming that the students already knew C, we started by showing them how to define classes, and then moved systematically through the rest of the language. We found that our students would be confused and frustrated for about two days--until they had learned enough that they could start writing useful programs. Once they got to that point, they learned quickly.
When we got our hands on a C++ implementation that supported enough of what was then the brand-new standard library, we overhauled the course. The new course used the library right from the beginning, concentrated on writing useful programs, and went into details only after the students had learned enough to use those details productively.
The results were dramatic: After one day in the classroom, our students were able to write programs that had taken them most of the week in the old course. Moreover, their frustration vanished.
Our approach is possible only because C++, and our understanding of it, has had time to mature. That maturity has let us ignore many of the low-level ideas that were the mainstay of earlier C++ programs and programmers.
The ability to ignore details is characteristic of maturing technologies. For example, early automobiles broke down so often that every driver had to be an amateur mechanic. It would have been foolhardy to go for a drive without knowing how to get back home even if something went wrong. Today's drivers don't need detailed engineering knowledge in order to use a car for transportation. They may wish to learn the engineering details for other reasons, but that's another story entirely.
We define abstraction as selective ignorance--concentrating on the ideas that are relevant to the task at hand, and ignoring everything else--and we think that it is the most important idea in modern programming. The key to writing a successful program is knowing which parts of the problem to take into account, and which parts to ignore. Every programming langauge offers tools for creating useful abstractions, and every successful programmer knows how to use those tools.
We think abstractions are so useful that we've filled this book with them. Of course, we don't usually call them abstractions directly, because they come in so many forms. Instead, we refer to functions, data structures, classes, and inheritance--all of which are abstractions. Not only do we refer to them, but we use them throughout the book.If abstractions are well designed and well chosen, we believe that we can use them even if we don't understand all the details of how they work. We do not need to be automotive engineers to drive a car, nor do we need to understand everything about how C++ works before we can use it.
If you are serious about C++ programming, you need to know everything in this book--even though this book doesn't tell you everything you need to know.
This statement is not as paradoxical as it sounds. No book this size can contain everything you'll ever need to know about C++, because different programmers and applications require different knowledge.Someone else will need it, even if you don't.
On the other hand, many parts of C++ are so universally important that it is hard to be productive without understanding them. We have concentrated on those parts. It is possible to write a wide variety of useful programs using only the information in this book. Indeed, one of our reviewers, who is the lead programmer for a substantial commercial system written in C++, told us that this book covers essentially all of the facilities that he uses in his work.Using these facilities, you can write true C++ programs--not C++ programs in the style of C, or any other language. Once you have mastered the material in this book, you will know enough to figure out what else you want to learn, and how to go about it. Amateur telescope makers have a saying that it is easier to make a 3-inch mirror and then to make a 6-inch mirror than to make a 6-inch mirror from scratch.
We cover only standard C++, and ignore proprietary extensions. This approach has the advantage that the programs that we teach you to write will work just about anywhere. However, it also implies that we do not talk about how to write programs that run in windowing environments, because such programs are invariably tied to a specific environment, and often to a specific vendor. If you want to write programs that will work only in a particular environment, you will have to turn elsewhere to learn how to do so--but don't put this book down quite yet! Because our approach is universal, you will be able to use everything that you learn here in whatever environments you use in the future. By all means, go ahead and read that book about GUI applications that you were considering--but please read this one first.
When you learn a new programming language, you may be tempted to write programs in a style that is familiar from the languages that you already know. Our approach seeks to avoid that temptation by using high-level abstractions from the C++ standard library right from the start. If you are already an experienced C or C++ programmer, this approach contains some good news and some bad news--and it's the same news. The news is that you are likely to be surprised at how little of your knowledge will help you understand C++ as we present it. You will have more to learn at first than you might expect (which is bad), but you will learn more quickly than you might expect (which is good). In particular, if you already know C++, you probably learned first how to program in C, which means that your C++ programming style is built on a C foundation. There is nothing wrong with that approach, but our approach is so different that we think you'll see a side of C++ that you haven't seen before.
Of course, many of the syntactic details will be familiar, but they're just details. We treat the important ideas in a completely different order from what you've probably encountered. For example, we don't mention pointers or arrays until Chapter 10, and we're not even going to discuss your old favorites, printf and malloc, at all. On the other hand, we start talking about the standard-library string class in Chapter 1. When we say we're adopting a new approach, we mean it!
Structure of this book
You may find it convenient to think of this book as being in two parts. The first part, through Chapter 7, concentrates on programs that use standard-library abstractions. The second part, starting with Chapter 8. talks about defining your own abstractions.
Presenting the library first is an unusual idea, but we think it's right. Much of the C++ language--especially the harder parts--exists mostly for the benefit of library authors. Library users don't need to know those parts of the language at all. By ignoring those parts of the language until the second part of the book, we make it possible to write useful C++ programs much more quickly than if we had adopted a more conventional approach.
Once you have understood how to use the library, you will be ready to learn about the low-level facilities on which the library is built, and how to use those facilities to write your own libraries. Moreover, you will have a feeling for how to make a library useful, and when to avoid writing new library code altogether.
Although this book is smaller than many C++ books, we have tried to use every important idea at least twice, and key ideas more than that. As a result, many parts of the book refer to other parts. These references look like §39.4.3/857, which refers to text on page 857 that is part of section 39.4.3--or at least it would do so if this book had that many sections or pages. The first time we explain each idea, we mention it in bold italic type to make it easy to find and to call your attention to it as an important point.
Every chapter (except the last) concludes with a section called "Details." These sections serve two purposes: They make it easy to remember the ideas that the chapter introduced, and they cover additional, related material that we think you will need to know eventually. We suggest that you skim these sections on first reading, and refer back to them later as needed.
The two appendices summarize and elucidate the important parts of the language and library at a level of detail that we hope will be useful when you are writing programs.
Getting the most out of this book
Every book about programming includes example programs, and this one is no different. In order to understand how these programs work, there is no substitute for running them on a computer. Such computers abound, and new ones appear constantly--which means that anything we might say about them would be inaccurate by the time you read these words.We will update that website from time to time with information and advice about the mechanics of running C++ programs. The site also offers machine-readable versions of some of the example programs, and other information that you might find interesting.
Barbara E. Moo
Gillette, New Jersey
020170353XP10242001 See all Product Description
What Other Items Do Customers Buy After Viewing This Item?
Top Customer Reviews
Earlier versions of C++--known as "C with Classes"--have been in use since 1980. But many so-called C++ tutorials still treat C++ as an extended form of C instead of the completely separate language that it is today. It has its own idiom. These tutorials, for example, use C-style string literals instead of C++'s string type and use arrays instead of C++'s vector type. This traditional way of teaching C++ results in errors and frustration among beginners--a major headache when trying to learn C and an unnecessary burden when trying to learn C++.
Fortunately, as implied, C++ has evolved, and a library--the standard library--has been developed to help programmers become productive more quickly and with less errors. _Accelerated_ is one of those few tutorials that uses this standard library early and often to quickly allow the beginner to write nontrivial programmes. On page 9, for example, you are already introduced to the string type. On page 12, you are already introduced to a member function of the string type. Compare this with common primers that tack on a chapter at the end about the standard library as an afterthought.
The authors let you in on subtleties that most experienced C++ programmers know but may appear strange to novices.Read more ›
To keep things short i'll only write pros and cons :
-Great unique approach of teaching to solve usefull problems
from the start , not just showing the language features
-Compaq and efficient (make you to think about the language not just showing you receipies , this is great because once you learn why this thing is done like is done , you'll never forgath it and know how to use it in solving your own problems)
-Great writing style (English isn't my first language but i never felt any problem with this book)
-Very good taste for choosing problems covered , even if i a feel there should be more exercises ( I'm gonna definately have to buy Authors other book Ruminations in C++ , need a lot of exercises in order to master the language).
-Lack of chapter about using compiler , there is nothing about even at authors site. Adding few pages about most widely used compilers like Visual C++ 6 or Net , Dev-Cpp , Borland will prevent from beginners' frustration.
Hello , world ! words pop up and vanished real night mare.
-I think there should be more exercises an the end of each chapter and solutions would be great.
This is not a book for an
1 Absolute beginner, (shouldn't be your first programming book, but it could be second)
2 Nor for someone needing detailed guidance -AUTHORS WONT HOLD YOUR HAND ALL WAY LONG you'll have to make your way through
3 I would be carefull to suggest it for young reader someone like less than 15 years old , because of author vocabular.Read more ›
Read with a reference (Lippman's C++ Primer is recommended, along with Josuittis' C++ Standard Library) and a compiler at hand, any reader - old-hand or newbie - capable of focused reading and conscientious working of examples will find Accelerated C++ an epiphany. It spurred me to further investigation of concepts I've far too-long avoided in my years of C++ work, and brought me closer to the level at which I wish to perform. I cannot recommend this book highly enough, and will require it of my students.
One reviewer complained about having to check the lengthy errata on the website to work through some examples. The reviewer maybe doesn't realize that this is a GOOD thing. So many other books do not have errata on-line at all, or errata that are so scanty as to be almost useless. And those are books that need it much more than this one. The authors of this book clearly work very hard to keep the on-line errata up to date for the benefit of their readers.
The authors clearly go out of their way to write for the sake of their readers. They are teachers, and it shows in their writing. They want their readers to learn the material, and they want their readers to enjoy themselves. They want their readers to see the beauty of the material. They care about the quality of their book. This sounds like something that should be obviously true, but if you have read other computer books, you should know it usually is not.
Finally as to the material itself, this book is wonderful. I was a programmer in another language, reading this book for self improvement, and I just loved learning about the STL, which is just so much fun and so cool. :)
Most recent customer reviews
This book is recommended in a lot of places but the Authors wording is appallingly difficult to get, the text is abstract not the coding methods.Published 2 months ago by Amazon Customer
It was pretty good, helps me learn this and that. The problem is that the instructions sometimes lead you to find the answer for yourself, but googling the solutions and comparing... Read morePublished 2 months ago by Justin Suh
Coming from a Java background with a degree in computer engineering, I found this book to be the most useful for learning C++. Read morePublished 19 months ago by Ricardo de Amorim
I would strongly reccomend this book, however it gets a 4 because it was a little hard to follow at timesPublished on July 15 2013 by Samuel Joseph Lehmann
My order arrived in record time and in great condition. Very good seller, I would definitely order from them again.Published on Oct. 27 2011 by Traveller
This book was awesome, one of the best i ever read. It says the same things of a miriad of other books, but in a exceptional way, simply, fast, correct. Read morePublished on June 7 2004 by Sciarretta Andrea Tullio
I have purchased way too many C++ books. I see the rut in which all authors seem to get into when writing this type of book. Read morePublished on April 14 2004 by C Parcell
There is a running debate as to weather this book is a book for beginners. The answer is yes and no. Read morePublished on Jan. 11 2004 by Sean
Look for similar items by category
- Books > Computers & Technology > Microsoft > Development > C & C++ Windows Programming
- Books > Computers & Technology > Programming > C
- Books > Computers & Technology > Programming > Languages & Tools
- Books > Computers & Technology > Software
- Books > Textbooks > Computer Science & Information Systems > Programming Languages