Linked e-resources
Details
Table of Contents
Intro; Contents; About the Authors; About the Technical Reviewer; Introduction; Chapter 1: Basic Ideas; Modern C++; Standard Libraries; C++ Program Concepts; Source Files and Header Files; Comments and Whitespace; Preprocessing Directives and Standard Library Headers; Functions; Statements; Data Input and Output; return Statements; Namespaces; Names and Keywords; Classes and Objects; Templates; Code Appearance and Programming Style; Creating an Executable; Procedural and Object-Oriented Programming; Representing Numbers; Binary Numbers; Hexadecimal Numbers; Negative Binary Numbers
Octal ValuesBi-Endian and Little-Endian Systems; Floating-Point Numbers; Representing Characters; ASCII Codes; UCS and Unicode; C++ Source Characters; Escape Sequences; Summary; Chapter 2: Introducing Fundamental Types of Data; Variables, Data, and Data Types; Defining Integer Variables; Signed Integer Types; Unsigned Integer Types; Zero Initialization; Defining Variables with Fixed Values; Integer Literals; Decimal Integer Literals; Hexadecimal Literals; Octal Literals; Binary Literals; Calculations with Integers; Compound Arithmetic Expressions; Assignment Operations
The op= Assignment OperatorsThe sizeof Operator; Incrementing and Decrementing Integers; Postfix Increment and Decrement Operations; Defining Floating-Point Variables; Floating-Point Literals; Floating-Point Calculations; Pitfalls; Invalid Floating-Point Results; Mathematical Functions; Formatting Stream Output; Mixed Expressions and Type Conversion; Explicit Type Conversion; Old-Style Casts; Finding the Limits; Finding Other Properties of Fundamental Types; Working with Character Variables; Working with Unicode Characters; The auto Keyword; Summary
Chapter 3: Working with Fundamental Data TypesOperator Precedence and Associativity; Bitwise Operators; The Bitwise Shift Operators; Shifting Signed Integers; Logical Operations on Bit Patterns; Using the Bitwise AND; Using the Bitwise OR; Using the Bitwise Complement Operator; Using the Bitwise Exclusive OR; Using the Bitwise Operators: An Example; Enumerated Data Types; Aliases for Data Types; The Lifetime of a Variable; Global Variables; Summary; Chapter 4: Making Decisions; Comparing Data Values; Applying the Comparison Operators; Comparing Floating-Point Values; The if Statement
Nested if StatementsCharacter Classification and Conversion; The if-else Statement; Nested if-else Statements; Understanding Nested ifs; Logical Operators; Logical AND; Logical OR; Logical Negation; Combining Logical Operators; Logical Operators on Integer Operands; Logical Operators vs. Bitwise Operators; Short-Circuit Evaluation; Logical XOR; The Conditional Operator; The switch Statement; Fallthrough; Statement Blocks and Variable Scope; Initialization Statements; Summary; Chapter 5: Arrays and Loops; Arrays; Using an Array; Understanding Loops; The for Loop; Avoiding Magic Numbers
Octal ValuesBi-Endian and Little-Endian Systems; Floating-Point Numbers; Representing Characters; ASCII Codes; UCS and Unicode; C++ Source Characters; Escape Sequences; Summary; Chapter 2: Introducing Fundamental Types of Data; Variables, Data, and Data Types; Defining Integer Variables; Signed Integer Types; Unsigned Integer Types; Zero Initialization; Defining Variables with Fixed Values; Integer Literals; Decimal Integer Literals; Hexadecimal Literals; Octal Literals; Binary Literals; Calculations with Integers; Compound Arithmetic Expressions; Assignment Operations
The op= Assignment OperatorsThe sizeof Operator; Incrementing and Decrementing Integers; Postfix Increment and Decrement Operations; Defining Floating-Point Variables; Floating-Point Literals; Floating-Point Calculations; Pitfalls; Invalid Floating-Point Results; Mathematical Functions; Formatting Stream Output; Mixed Expressions and Type Conversion; Explicit Type Conversion; Old-Style Casts; Finding the Limits; Finding Other Properties of Fundamental Types; Working with Character Variables; Working with Unicode Characters; The auto Keyword; Summary
Chapter 3: Working with Fundamental Data TypesOperator Precedence and Associativity; Bitwise Operators; The Bitwise Shift Operators; Shifting Signed Integers; Logical Operations on Bit Patterns; Using the Bitwise AND; Using the Bitwise OR; Using the Bitwise Complement Operator; Using the Bitwise Exclusive OR; Using the Bitwise Operators: An Example; Enumerated Data Types; Aliases for Data Types; The Lifetime of a Variable; Global Variables; Summary; Chapter 4: Making Decisions; Comparing Data Values; Applying the Comparison Operators; Comparing Floating-Point Values; The if Statement
Nested if StatementsCharacter Classification and Conversion; The if-else Statement; Nested if-else Statements; Understanding Nested ifs; Logical Operators; Logical AND; Logical OR; Logical Negation; Combining Logical Operators; Logical Operators on Integer Operands; Logical Operators vs. Bitwise Operators; Short-Circuit Evaluation; Logical XOR; The Conditional Operator; The switch Statement; Fallthrough; Statement Blocks and Variable Scope; Initialization Statements; Summary; Chapter 5: Arrays and Loops; Arrays; Using an Array; Understanding Loops; The for Loop; Avoiding Magic Numbers