Skip to content

Sams Teach Yourself C++ in 21 Days

Best in textbook rentals since 2012!

ISBN-10: 0672327112

ISBN-13: 9780672327117

Edition: 5th 2005 (Revised)

Authors: Jesse Liberty, Bradley L. Jones

List price: $44.99
Blue ribbon 30 day, 100% satisfaction guarantee!
what's this?
Rush Rewards U
Members Receive:
Carrot Coin icon
XP icon
You have reached 400 XP and carrot coins. That is the daily max!

Description:

Join the leagues of thousands of programmers and learn C++ from some of the best. The fifth edition of the best sellerSams Teach Yourself C++ in 21 Days, written by Jesse Liberty, a well-known C++ and C# programming manual author and Bradley L. Jones, manager for a number of high profiler developer websites, has been updated to the new ANSI/ISO C++ Standard. This is an excellent hands-on guide for the beginning programmer. Packed with examples of syntax and detailed analysis of code, fundamentals such as managing I/O, loops, arrays and creating C++ applications are all covered in the 21 easy-to-follow lessons. You will also be given access to a website that will provide you will all the…    
Customers also bought

Book details

List price: $44.99
Edition: 5th
Copyright year: 2005
Publisher: Sams
Binding: Paperback
Pages: 936
Size: 7.50" wide x 9.25" long x 2.00" tall
Weight: 3.344
Language: English

Jesse Liberty is a Master Consultant for Falafel Software, aMicrosoft MVP, a Telerik MVP, an author, and he creates courses forPluralsight. Liberty hosts the popular Yet Another Podcast and his blog isconsidered required reading. He was a Senior Evangelist for Microsoft, a XAML Evangelistfor Telerik, a Distinguished Software Engineer at ATT; Software Architectfor PBS and Vice President of Information Technology at Citibank. Jesse can befollowed on twitter at @JesseLiberty

Introduction
Who Should Read This Book
Conventions Used in This Book
Sample Code for This Book
Week 1 At a Glance
A Note to C Programmers
Where You Are Going
Getting Started
A Brief History of C++
The Need for Solving Problems
Procedural, Structured, and Object-Oriented Programming
Object-Oriented Programming (OOP)
C++ and Object-Oriented Programming
How C++ Evolved
Should I Learn C First?
C++, Java, and C#
Microsoft's Managed Extensions to C++
The ANSI Standard
Preparing to Program
Your Development Environment
The Process of Creating the Program
Creating an Object File with the Compiler
Creating an Executable File with the Linker
The Development Cycle
HELLO.cpp-Your First C++ Program
Getting Started with Your Compiler
Building the Hello World Project
Compile Errors
Summary
Q &A
Workshop
Quiz
Exercises
The Anatomy of a C++ Program
A Simple Program
A Brief Look at cout
Using the Standard Namespace
Commenting Your Programs
Types of Comments
Using Comments
A Final Word of Caution About Comments
Functions
Using Functions
Methods Versus Functions
Summary
Q &A
Workshop
Quiz
Exercises
Working with Variables and Constants
What Is a Variable?
Storing Data in Memory
Setting Aside Memory
Size of Integers
signed and unsigned
Fundamental Variable Types
Defining a Variable
Case Sensitivity
Naming Conventions
Keywords
Creating More Than One Variable at a Time
Assigning Values to Your Variables
Creating Aliases with typedef
When to Use short and When to Use long
Wrapping Around an unsigned Integer
Wrapping Around a signed Integer
Working with Characters
Characters and Numbers
Special Printing Characters
Constants
Literal Constants
Symbolic Constants
Enumerated Constants
Summary
Q &A
Workshop
Quiz
Exercises
Creating Expressions and Statements
Starting with Statements
Using Whitespace
Blocks and Compound Statements
Expressions
Working with Operators
Assignment Operators
Mathematical Operators
Combining the Assignment and Mathematical Operators
Incrementing and Decrementing
Prefixing Versus Postfixing
Understanding Operator Precedence
Nesting Parentheses
The Nature of Truth
Evaluating with the Relational Operators
The if Statement
Indentation Styles
The else Statement
Advanced if Statements
Using Braces in Nested if Statements
Using the Logical Operators
The Logical AND Operator
The Logical OR Operator
The Logical NOT Operator
Short Circuit Evaluation
Relational Precedence
More About Truth and Falsehood
The Conditional (Ternary) Operator
Summary
Q &A
Workshop
Quiz
Exercises
Organizing into Functions
What Is a Function?
Return Values, Parameters, and Arguments
Declaring and Defining Functions
Function Prototypes
Defining the Function
Execution of Functions
Determining Variable Scope
Local Variables
Local Variables Within Blocks
Parameters Are Local Variables
Global Variables
Global Variabl