- Shopping Bag ( 0 items )
Ships from: fallbrook, CA
Usually ships in 1-2 business days
Ships from: acton, MA
Usually ships in 1-2 business days
An ideal way for C programmers to move to the world of Object-Oriented programming and C++. The proven techniques of the "Teach Yourself" series make this book the essential guide to learning C++ no matter what compiler is being used. The only way to learn to program is to write code. With this guide you'll be writing programs in just a matter of days.
Welcome to Sams Teach Yourself C++ in 21 Days! Today you will get started on your way to becoming a proficient C++ programmer.
Today you will learn
A Brief History of C++
Computer languages have undergone dramatic evolution since the first electronic computers were built to assist in artillery trajectory calculations during World War II. Early on, programmers worked with the most primitive computer instructions: machine language. These instructions were represented by long strings of ones and zeros. Soon. assemblers were invented to nap machine instructions to human-readable and -manageable mnemonics, such as ADD and MOV.
In time, higher-level languages evolved, such as BASIC and COBOL. These languages let people work with something approximating words and sentences, such as Let I = 100. These instructions were translated back into machine language by interpreters and compilers.
An interpreter translates a program as it reads it, turning the program instructions, or code, directly into actions. A compiler translates the code into an intermediary form. This step is called compiling, and it produces an object file. The compiler then invokes a linker, which turns the object file into an executable program.
Because interpreters read the code as it is written and execute the code on the spot, interpreters are easy for the programmer to work with. Today, most interpreted programs are referred to as scripts, and the interpreter itself is often called a Script Engine.
Some languages, such as Visual Basic, call the interpreter the runtime library. .lava calls its runtime interpreter a Virtual Machine (VM), but in this case the VM is provided by the browser (such as Internet Explorer or Netscape).
Compilers introduce the extra steps of compiling the source code (which is readable by humans) into object code (which is readable by machines). This extra step is inconvenient, but compiled programs run very fast because the time-consuming task of translating the source code into machine language is done once (at compile time) and is not required when you execute the program. Another advantage of many compiled languages such as C++ is that you can distribute the executable program to people who don't have the compiler. With an interpreted ]an
For many years, the principal goal of computer programmers was to write short pieces of code that would execute quickly. The program needed to be small because memory was expensive, and it needed to be fast because processing power was also expensive. As computers have become smaller, cheaper, and faster, and as the cost of memory has fallen, these priorities have changed. Today the cost of a programmers time far outweighs the cost of most of the computers in use by businesses. Well-written, easy-to-maintain code is at a premium. Easy to maintain means that as business requirements change, the program can be extended and enhanced without great expense...
|Week 1||At a Glance||3|
|Day 1||Getting Started||5|
|Day 2||The Anatomy of a C++ Program||23|
|Day 3||Variables and Constants||39|
|Day 4||Expressions and Statements||63|
|Day 6||Object-Oriented Programming||131|
|Day 7||More Program Flow||167|
|Week 1||In Review||199|
|Week 2||At a Glance||207|
|Day 10||Advanced Functions||277|
|Day 11||Object-Oriented Analysis and Design||317|
|Day 13||Arrays and Linked Lists||391|
|Week 2||In Review||475|
|Week 3||At a Glance||487|
|Day 15||Special Classes and Functions||489|
|Day 16||Advanced Inheritance||519|
|Day 20||Exceptions and Error Handling||685|
|Day 21||What's Next||717|
|Week 3||In Review||759|
|App. A||Binary and Hexadecimal||773|
|App. B||C++ Keywords||783|
|App. C||Operator Precedence||785|
|App. D: Answers||787|
Posted January 25, 2001
Posted April 23, 2000
I started to read two chapters of the Sams Teach Yourself C in 21 days. It was very fun. But I wanted to learn something new. So I decided to get the Sams Teach Yourself C++ in 21 days the complete compiler edition. The book is very helpful, and very good to understand. This is a good book to get.Was this review helpful? Yes NoThank you for your feedback. Report this reviewThank you, this review has been flagged.
Posted April 2, 2000
This book was very helpful. Although they could have put the comments at the end of every line instead of in between the line. It took a while to understand what they were doing in the code.Was this review helpful? Yes NoThank you for your feedback. Report this reviewThank you, this review has been flagged.
Posted January 16, 2000
I purchased this book in the spring of 99' and within 15 minutes I was writing, compiling, and running my own programs. It teaches you everything that you want to know in a compressed time period, so within days you will feel more and more comfortable with C++ as you move along. If your new to C++ this book is a good start.Was this review helpful? Yes NoThank you for your feedback. Report this reviewThank you, this review has been flagged.