
The C++ Workshop
A New, Interactive Approach to Learning C++
- 606 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
The C++ Workshop
A New, Interactive Approach to Learning C++
About this book
Learn to create high-performance, error-free programs by understanding the core principles and techniques behind programming in C++
Key Features
- Gain a solid understanding of the syntax and anatomy of C++
- Implement best practices when building high-performance C++ programs
- Prepare for real-world development tasks by tackling engaging activities
Book Description
C++ is the backbone of many games, GUI-based applications, and operating systems. Learning C++ effectively is more than a matter of simply reading through theory, as the real challenge is understanding the fundamentals in depth and being able to use them in the real world. If you're looking to learn C++ programming efficiently, this Workshop is a comprehensive guide that covers all the core features of C++ and how to apply them. It will help you take the next big step toward writing efficient, reliable C++ programs.
The C++ Workshop begins by explaining the basic structure of a C++ application, showing you how to write and run your first program to understand data types, operators, variables and the flow of control structures. You'll also see how to make smarter decisions when it comes to using storage space by declaring dynamic variables during program runtime.
Moving ahead, you'll use object-oriented programming (OOP) techniques such as inheritance, polymorphism, and class hierarchies to make your code structure organized and efficient. Finally, you'll use the C++ standard library?s built-in functions and templates to speed up different programming tasks.
By the end of this C++ book, you will have the knowledge and skills to confidently tackle your own ambitious projects and advance your career as a C++ developer.
What you will learn
- Understand how a C++ program is written, executed, and compiled
- Efficiently work with the essential C++ data types and variables
- Build your own C++ applications by writing clear and error-free code
- Grasp the core principles behind object-oriented programming
- Simplify your code by using templates and the standard library
- Debug logical errors and handle exceptions in your program
Who this book is for
This Workshop is for anyone who is new to C++ who wants to build a strong foundation for C++ game programming or application development. Basic prior knowledge of data structures and OOP concepts, as well as experience in any other programming language, will help you grasp the concepts covered in this book more easily.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
1. Your First C++ Application
Introduction
Advantages of C++
- Performance: By putting the programmer close to the hardware, C++ allows us to write very efficient programs. Along with low-level memory access, the abstraction between code and what the machine will do is smaller than in most other languages, meaning you can manipulate the system better.
- Portability: C++ can be cross-compiled to a wide array of platforms, and runs on everything from watches to televisions. If you're writing an application or library for more than one platform, C++ shines.
- General purpose: C++ is a general-purpose programming language, and is used in everything from video games to enterprise. With a rich feature set spanning everything from direct memory management to classes and other Object-Oriented Programming (OOP) principles, you can make C++ work for you.
- Large libraries: Since the language is used in so many applications, there's an abundance of libraries to choose from. With hundreds of open source repositories, the wealth of information (and the support systems that come with it) is vast.
Anatomy of a C++ Application
Table of contents
- Preface
- 1. Your First C++ Application
- 2. Control Flow
- 3. Built-In Data Types
- 4. Operators
- 5. Pointers and References
- 6. Dynamic Variables
- 7. Ownership and Lifetime of Dynamic Variables
- 8. Classes and Structs
- 9. Object-Oriented Principles
- 10. Advanced Object-Oriented Principles
- 11. Templates
- 12. Containers and Iterators
- 13. Exception Handling in C++
- Appendix