Mastering C++

Book Description

This book is meant to be an in-depth course on C++, as it covers the language from all angles. There are quizzes and practice questions at the end of each section so that students can test their knowledge and expertise.



Chapter 1: Setting Up Your Environment

Setting up Your Environment

Chapter 2: Beginner’s Guide

The Basics of C++

C++ Comments

Quiz 1

User Interaction and Variables

Quiz 2

If Statements


Quiz 3


Quiz 4


Local and Global Variables

Quiz 5

Switch Case and Enums

Using Enums to Create Simple Data Types

Quiz 6

Randomizing Your Programs

Quiz 7

Chapter 3: Intermediate Guide


Quiz 8


Quiz 9

Introduction to Pointers

Memory and Arrays

Quiz 10

Getting to Grips with Pointers

Quiz 11

Dynamic Memory Allocation

Quiz 12

Introduction to And Linked Lists

Traversing Linked Lists

Quiz 13


Loops And Recursion

Quiz 14

Binary Trees

Quiz 15

The Standard Template Library

Quiz 16

Let’s Talk Strings

Quiz 17

Debugging with ::Blocks

Chapter 4: Advanced Guide

Writing Larger Programs

Quiz 18

Introduction to

Quiz 19

Hiding the Representation of Structured Data

Quiz 20

The Class

Quiz 21

The of a Class

Quiz 22

Inheritance and Polymorphism

Quiz 23


Quiz 24

File I/O

Quiz 25

in C++

Quiz 26


Quiz Answers

Book Details

  • Title: Mastering C++
  • Author:
  • Length: 503 pages
  • Edition: 1
  • Language: English
  • Publisher:
  • Publication Date: 2019-06-11
  • ISBN-10: 1074243145
  • ISBN-13: 9781074243142