Book description
Modern C++ at your fingertips!
About This Book
This book gets you started with the exciting world of C++ programming
It will enable you to write C++ code that uses the standard library, has a level of object orientation, and uses memory in a safe and effective way
It forms the basis of programming and covers concepts such as data structures and the core programming language
Who This Book Is For
A computer, an internet connection, and the desire to learn how to code in C++ is all you need to get started with this book.
What You Will Learn
Get familiar with the structure of C++ projects
Identify the main structures in the language: functions and classes
Feel confident about being able to identify the execution flow through the code
Be aware of the facilities of the standard library
Gain insights into the basic concepts of object orientation
Know how to debug your programs
Get acquainted with the standard C++ library
In Detail
C++ has come a long way and is now adopted in several contexts. Its key strengths are its software infrastructure and resource-constrained applications, including desktop applications, servers, and performance-critical applications, not to forget its importance in game programming. Despite its strengths in these areas, beginners usually tend to shy away from learning the language because of its steep learning curve.
The main mission of this book is to make you familiar and comfortable with C++. You will finish the book not only being able to write your own code, but more importantly, you will be able to read other projects. It is only by being able to read others' code that you will progress from a beginner to an advanced programmer. This book is the first step in that progression.
The first task is to familiarize you with the structure of C++ projects so you will know how to start reading a project. Next, you will be able to identify the main structures in the language, functions, and classes, and feel confident being able to identify the execution flow through the code. You will then become aware of the facilities of the standard library and be able to determine whether you need to write a routine yourself, or use an existing routine in the standard library.
Throughout the book, there is a big emphasis on memory and pointers. You will understand memory usage, allocation, and access, and be able to write code that does not leak memory. Finally, you will learn about C++ classes and get an introduction to object orientation and polymorphism.
Style and approach
This straightforward tutorial will help you build strong skills in C++ programming, be it for enterprise software or for low-latency applications such as games or embedded programming. Filled with examples, this book will take you gradually up the steep learning curve of C++.
Table of contents
- Customer Feedback
- Preface
- Starting with C++
- Understanding Language Features
-
Exploring C++ Types
- Exploring built-in types
- Converting between types
- Using C++ types
- Summary
- Working with Memory, Arrays, and Pointers
- Using Functions
- Classes
-
Introduction to Object-Orientated Programming
- Inheritance and composition
-
Introducing polymorphism
- Virtual methods
- Virtual method tables
- Multiple inheritance and virtual method tables
- Virtual methods, construction, and destruction
- Containers and virtual methods
- Friends and inheritance
- Override and final
- Virtual inheritance
- Abstract classes
- Obtaining type information
- Smart pointers and virtual methods
- Interfaces
- Class relationships
- Using mixin classes
- Using polymorphism
- Summary
- Using the Standard Library Containers
- Using Strings
- Diagnostics and Debugging
Product information
- Title: Beginning C++ Programming
- Author(s):
- Release date: April 2017
- Publisher(s): Packt Publishing
- ISBN: 9781787124943
You might also like
book
Beginning C++
Beginning C++ is a tutorial for beginners in C++ and discusses a subset of C++ that …
video
Beginning C++
C++ is a powerful high-level language with a wealth of recently added features that enhance its …
book
Mastering C++ Programming
Take your C++ coding to the next level by leveraging the latest features and advanced techniques …
book
Hands-On System Programming with C++
A hands-on guide to making system programming with C++ easy Key Features Write system-level code leveraging …