Buy new:
$79.00$79.00
Arrives:
Thursday, Feb 16
Ships from: Amazon Sold by: Read & Refine
Buy Used: $25.00
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required. Learn more
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 Authors
OK
Sams Teach Yourself C++ In 21 Days 5th Edition
| Price | New from | Used from |
- Kindle
$26.99 Read with Our Free App - Paperback
$25.00 - $79.0019 Used from $3.79 2 New from $72.21
There is a newer edition of this item:
Enhance your purchase
- ISBN-100672327112
- ISBN-13978-0672327117
- Edition5th
- PublisherSams
- Publication dateJanuary 1, 2004
- LanguageEnglish
- Dimensions7.5 x 2 x 9.25 inches
- Print length910 pages
Customers who viewed this item also viewed
Editorial Reviews
About the Author
Jesse Liberty is the author of numerous books on software development, including best-selling titles in C++ and .NET. He is the president of Liberty Associates, Inc. (http://www.LibertyAssociates.com) where he provides custom programming, consulting, and training.
Bradley Jones, Microsoft MVP, Visual C++, can be referred to as a webmaster, manager, coding grunt, executive editor, and various other things. His time and focus are on a number of software development sites and channels, including Developer.com, CodeGuru.com, DevX, VBForums, Gamelan, and other Jupitermedia-owned sites. This influence expands over sites delivering content to over 2.5 million unique developers a month.
His expertise is in the area of the big "C"sC, C++, and C#however, his experience includes development in PowerBuilder, VB, some Java, ASP, COBOL I/II, and various other technologies too old to even mention now. He has also been a consultant, analyst, project lead, associate publisher for major technical publishers, and author. His recent authoring credits include Sams Teach Yourself the C# Language in 21 Days, a 6th edition of Sams Teach Yourself C in 21 Days, and now this edition of Sams Teach Yourself C++ in 21 Days. He is also the cofounder and president of the Indianapolis .NET Developers Association, which is a charter INETA group with membership of over 700. You can often hear his ramblings on the CodeGuru.com or VBForums.com discussion forums, and he also does the weekly CodeGuru newsletter that goes out to tens of thousands of developers.
© Copyright Pearson Education. All rights reserved.
Excerpt. © Reprinted by permission. All rights reserved.
Introduction
This book is designed to help you teach yourself how to program with C++. No one can learn a serious programming language in just three weeks, but each of the lessons in this book has been designed so that you can read the entire lesson in just a few hours on a single day.
In just 21 days, you'll learn about such fundamentals as managing input and output, loops and arrays, object-oriented programming, templates, and creating C++ applicationsall in well-structured and easy-to-follow lessons. Lessons provide sample listingscomplete with sample output and an analysis of the codeto illustrate the topics of the day.
To help you become more proficient, each lesson ends with a set of common questions and answers, a quiz, and exercises. You can check your progress by examining the quiz and exercise answers provided in Appendix D, "Answers."
Who Should Read This Book
You don't need any previous experience in programming to learn C++ with this book. This book starts you from the beginning and teaches you both the language and the concepts involved with programming C++. You'll find the numerous examples of syntax and detailed analysis of code an excellent guide as you begin your journey into this rewarding environment. Whether you are just beginning or already have some experience programming, you will find that this book's clear organization makes learning C++ fast and easy.
Conventions Used in This Book
Tip - These boxes highlight information that can make your C++ programming more efficient and effective.
Note - These boxes provide additional information related to material you just read.
FAQ - What do FAQs do?
Answer: These Frequently Asked Questions provide greater insight into the use of the language and clarify potential areas of confusion.
Caution - These focus your attention on problems or side effects that can occur in specific situations.
DO/DON'T
These boxes provide clear definitions of essential terms.
DO use the "Do/Don't" boxes to find a quick summary of a fundamental principle in a lesson.
DON'T overlook the useful information offered in these boxes.
This book uses various typefaces to help you distinguish C++ code from regular English. Actual C++ code is typeset in a special monospace font. Placeholderswords or characters temporarily used to represent the real words or characters you would type in codeare typeset in italic monospace . New or important terms are typeset in italic.
In the listings in this book, each real code line is numbered. If you see an unnumbered line in a listing, you'll know that the unnumbered line is really a continuation of the preceding numbered code line (some code lines are too long for the width of the book). In this case, you should type the two lines as one; do not divide them.
Sample Code for This Book
The sample code described throughout this book and Appendix D, "Answers," are available on the Sams website at http://www.samspublishing.com. Enter this book's ISBN (without the hyphens) in the Search box and click Search. When the book's title is displayed, click the title to go to a page where you can download the code and Appendix D.
© Copyright Pearson Education. All rights reserved.
Product details
- Publisher : Sams; 5th edition (January 1, 2004)
- Language : English
- Paperback : 910 pages
- ISBN-10 : 0672327112
- ISBN-13 : 978-0672327117
- Item Weight : 3.35 pounds
- Dimensions : 7.5 x 2 x 9.25 inches
- Best Sellers Rank: #1,734,987 in Books (See Top 100 in Books)
- #548 in C++ Programming Language
- #1,504 in Computer Programming Languages
- #6,862 in Computer Software (Books)
- Customer Reviews:
About the authors

Jesse Liberty is a .NET MAUI programmer working for CNH Industries. He is a Microsoft MVP, a Xamarin MVP, and an author.
Liberty hosts the popular Yet Another Podcast and his blog (https://jesseliberty.com) is considered required reading. He was a Senior Evangelist for Microsoft, a Distinguished Software Engineer at AT&T; Software Architect for PBS and Vice President of Information Technology at Citibank.
His non-technical writing can be found at https://jlauthor.me
Jesse can be followed at https://jesseliberty.com/find-me

Discover more of the author’s books, see similar authors, read author blogs and more
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 Amazon-
Top reviews
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
I found myself floundering a bit after the 6th day of this book, as it's a LOT of knowledge to take in (30-50 pages plus a quiz), so taking it slower, and breaking it down with reviews of supplemental material can help that a lot.
using namespace std;
Rather than doing that most thing that are written in the book are as follows, their version first, then having used "using namespace std;" under that.
int i; //Just so the code looks correct
std::cout << "My name is Logan how old are you? ";
//cout << "My name is Logan how old are you? ";
std::cin >> i;
//cin >> i;
As you can imagine the whole std:: thing gets repetitive and obnixious really quick. Albiet programing is repetitive but come on. They even tell you at some point that using namespace std; is acceptable they just choose not to. That is my only dislike about the book. In the real world you want to type as little as you can to get the job done std:: seems like such a waste and it makes the coded pages seem garbled. (Admidetly the entire book isn't written this way as they change their format throughout. Sometimes they put at the begenning something like "using std::cout; or using std::endl;" so that they can then use "cout/endl" alone, I like a book that sticks to one way all the way through, I'm tring to learn one way, not a bunch of ways to do the same thing.)
Other than that the book is an excellent tool and reference the std:: thing is just a peve of mine.
It assumes no previous knowledge -- just a willingness to learn. It begins with "Hello, World", the classic example first introduced in the K&R C book, and then continues for the next few "days" to cover the funamental C aspects such as basic I/O, variables, functions, branching, data types, and operators.
After that preliminary information is covered, the authors begin showing basic class useage -- the general form of a class, constructors, destructors, data members, and member functions.
In the final "day" of the "week", control statements (for, do...while, switch, etc.) are given a good, and thorough treatment.
The next "week" moves on to more advanced concepts such as pointers, reference variables, function overloading, inheritance, and polymorphism. By the end of this week, you will be pretty proficient, and probably ready to implement more substantial projects, however, the book still covers more.
In the last week, other, more advanced, concepts are introduced such as friend functions, file manipulation, low level bit manipulation, and a lot more to help you become a master of this beast of a language.
This book also goes through each and every example program and provides a thorough analysis -- so you're never left in the dark as to what a program is doing or how.
This work does have some shortcomings, but they're not that significant. Yes, some of the example programs are extremely boring and you're left thinking whether you should bother entering and compiling them. Sometimes explanations are offered for the most trivial of concepts in programs, but overall, it's a great book at a great price.
In short, if you want to learn C++ and you want to learn it thoroughly, then this is your book!
From a programming standpoint, it's also very good. Lays out the concepts of C++ so that a beginner can pick up pretty quickly, but has worked well as a reference.
Who am I kidding... I didn't have the concentration to actually work through it well. But I am a programmer and did do a cursory glance, and its examples are pretty solid, and so is its layout. I lend it out to friends frequently, at which point I trade it out for a Java book to keep my monitor at a comfortable height.
Top reviews from other countries
Pro's:
- Extremely comprehensive and goes beyond the learning of a programming language
- In-depth look at every elements of the C++ language going from the basic to the utterly complex
- Well explained examples
- Often indicates possible pitfalls and how to avoid them
Con's
- Way too much for a beginner
- Too often a chapter on a basic notion of the C++ language is followed by one on an extremely complex subject
- The text characters on the e-book version for the examples listed are extremely small and difficult to read particularly for braces and other special characters. As opposed to the book text itself, my kindle reader could not enlarge the example's characters.
Overall:
Pricey but well worth having if you have at least a good base in C and/or C++. For beginner's I would definitely go with Siddhartha Rao's "Teach yourself C++ in one hour a day" also a SAM's book available in hard copy and e-book on Amazon.



