Have a personal or library account? Click to login
C++ Cover

C++

The Comprehensive Guide

Paid access
|Jan 2025
Product purchase options

Comprehensive C++23 resource offering deep coverage from syntax basics to advanced concurrency and standard library usage. Learn best practices to write secure, efficient, and modular C++ code with expert guidance.

Key Features

  • In-depth coverage of modern C++23 concepts ensuring comprehensive understanding of language features
  • Focus on writing secure, maintainable, and efficient code for professional and scalable projects
  • Practical examples and real-world scenarios illustrating advanced techniques and best practices

Book Description

This book begins by grounding readers in the essentials of modern C++23, covering syntax, compiling, and core programming concepts. Early chapters introduce building blocks like data types, functions, and statements, ensuring a solid foundation. Readers also learn coding best practices focused on readability and modularization.
As the journey progresses, the focus shifts to object-oriented programming, exploring classes, inheritance, namespaces, and lifecycle management. The text includes advanced topics such as templates, macros, and the integration of C libraries. Readers develop skills in designing secure, maintainable, and extensible code while mastering error handling and testing.
The final sections dive into concurrency, standard library features like containers and algorithms, and advanced stream handling. Practical guidance on thread management, synchronization, and modern concurrency tools prepares readers for real-world applications. Concluding chapters present C++ guidelines, emphasizing sustainable and quality code development, completing a comprehensive path from fundamentals to expert-level mastery.

What you will learn

  • Understand C++23 syntax and semantics effectively
  • Apply object-oriented programming principles with clarity
  • Utilize the standard library for data structures and algorithms
  • Implement concurrent programming with threads and synchronization
  • Write modular and maintainable code following best practices
  • Master templates and generic programming techniques

Who this book is for

Ideal for intermediate programmers and software developers with some familiarity in programming concepts, looking to master modern C++23. Readers should have basic understanding of programming logic and syntax. Prior experience in any procedural or object-oriented language helps, but beginners motivated to learn C++ thoroughly will also benefit.

Table of Contents

  1. C++: The Comprehensive Guide
  2. Programming in C++
  3. C++ for Newcomers
  4. The Basic Building Blocks of C++
  5. Good Code, 1st Dan: Writing Readable Code
  6. Higher Data Types
  7. Functions
  8. Statements in Detail
  9. Expressions in Detail
  10. Error Handling
  11. Good Code, 2nd Dan: Modularization
  12. From Structure to Class
  13. Namespaces and Qualifiers
  14. Good Code, 3rd Dan: Testing
  15. Inheritance
  16. The Lifecycle of Classes
  17. Good Code, 4th Dan: Security, Quality, and Sustainability
  18. Specials for Classes
  19. Good Code, 5th Dan: Classical Object-Oriented Design
  20. Pointers
  21. Macros
  22. Interface to C
  23. Templates
  24. Containers
  25. Container Support
  26. Good Code, 6th Dan: The Right Container for Each Task
  27. Streams, Files, and Formatting
  28. Standard Library: Extras
  29. Threads: Programming with Concurrency
  30. Good Code, 7th Dan: Guidelines
PDF ISBN: 978-1-80610-056-9
Publisher: Packt Publishing Limited
Publication date: 2025
Language: English
Pages: 1093