C++ in One Hour a Day, Sams Teach Yourself

Series
Sams
Author
Siddhartha Rao  
Publisher
Sams Publishing
Cover
Softcover
Edition
8
Language
English
Total pages
800
Pub.-date
December 2016
ISBN13
9780789757746
ISBN
0789757745
Related Titles


Product detail

Product Price CHF Available  
9780789757746
C++ in One Hour a Day, Sams Teach Yourself
50.30 approx. 7-9 days

New to this Edition

• New coverage of C++14 and C++17
• Updated throughout for most recent C++ compilers 
• Introductory material improved upon as suggested by readers for more clarity and better examples

Table of Contents

Part I: The Basics

Lesson 1: Getting Started

  A Brief History of C++

    Connection to C

    Advantages of C++

    Evolution of the C++ Standard

    Who Uses Programs Written in C++?

  Programming a C++ Application

    Steps to Generating an Executable

    Analyzing Errors and “Debugging”

    Integrated Development Environments

    Programming Your First C++ Application

    Building and Executing Your First C++ Application

    Understanding Compiler Errors

  What’s New in C++?

Lesson 2: The Anatomy of a C++ Program

  Parts of the Hello World Program

  Preprocessor Directive #include

  The Body of Your Program main()

    Returning a Value

  The Concept of Namespaces

  Comments in C++ Code

  Functions in C++

  Basic Input Using std::cin and Output Using std::cout

Lesson 3: Using Variables, Declaring Constants

  What Is a Variable?

    Memory and Addressing in Brief

    Declaring Variables to Access and Use Memory

    Declaring and Initializing Multiple Variables of a Type

    Understanding the Scope of a Variable

    Global Variables

    Naming Conventions

  Common Compiler-Supported C++ Variable Types

    Using Type bool to Store Boolean Values

    Using Type char to Store Character Values

    The Concept of Signed and Unsigned Integers

    Signed Integer Types short, int, long, and long long

  Unsigned Integer Types unsigned short, unsigned int, unsigned long, and unsigned long

    long

    Avoid Overflow Errors by Selecting Correct Data Types

    Floating-Point Types float and double

  Determining the Size of a Variable Using sizeof

    Avoid Narrowing Conversion Errors by Using List Initialization

  Automatic Type Inference Using auto

  Using typedef to Substitute a Variable’s Type

  What Is a Constant?

    Literal Constants

    Declaring Variables as Constants Using const

    Constant Expressions Using constexpr

    Enumerations

    Defining Constants Using #define

  Keywords You Cannot Use as Variable or Constant Names

Lesson 4: Managing Arrays and Strings

  What Is an Array?

    The Need for Arrays

    Declaring and Initializing S

Author

Siddhartha Rao has two decades of experience in software development and is the Vice President in charge of Security Response at SAP SE. The evolution of C++ convinces Siddhartha that you can program faster, simpler, and more powerful applications than ever before.