Learn C++ by Example: Covers versions 11 to 23

  • 4h 40m
  • Frances Buontempo
  • Manning Publications
  • 2024

Unit testing is more than just a collection of tools and practices—it’s a state of mind! This bestseller reveals the master’s secrets for delivering robust, maintainable, and trustworthy code.

Don’t let the multitude of C++ updates intimidate you! Learn C++ by Example takes you through the major language changes since C++ 11, with each new feature demonstrated with a fun project or minigame. It’s perfect for beginners who know C++ basics, coders coming back to the language, or current C++ developers missing out on everything the language has to offer.

Inside Learn C++ by Example you’ll find important skills such as:

  • Utilizing the new C++ features from C++ 11 to 23
  • Effectively testing your C++ code
  • What happens “under the hood” of C++ code
  • Picking efficient algorithms and data structures
  • std::format, STL algorithms, ranges, and coroutines

Learn C++ by Example rapidly gets up to speed with C++’s updates and changes, and ensures you’ll stay ahead as the language continues to change and grow. You’ll learn about vectors and ranges by generating Pascal’s triangle, create a racing game with new special member functions, build a slot machine with parameter packs, and more.

About the technology

C++ delivers the flexibility and performance you need for everything from low-level systems programming to secure financial applications and AAA game development. First introduced in 1985, the language is still evolving, with exciting changes in every new version. Whether you’re just getting started or you’re a veteran coder adding to your toolbox, the eight hands-on projects in this book will get you up to speed on modern C++ features and practices.

About the book

Learn C++ by Example is a fun and practical way to start writing modern C++ code. It guides you through entertaining challenges, emphasizing features and techniques made possible by C++ 17, 20, and 23. You’ll learn about objects and arrays by creating a deck of playing cards, master the C++ random library for a number guess game, use the chrono library to create a countdown timer, and much more. Along the way you’ll also pick up valuable tips for testing, project organization, and other productivity skills.

About the Author

Frances Buontempo is an experienced C++ developer and the editor of ACCU’s Overload magazine.

The technical editor on this book was Timothy Jaap van Deurzen.

In this Book

  • Foreword
  • Hello Again, C++!
  • Containers, Iterators, and Ranges
  • Input of Strings and Numbers
  • Time Points, Duration, and Literals
  • Creating and Using Objects and Arrays
  • Smart Pointers and Polymorphism
  • Associative Containers and Files
  • Unordered Maps and Coroutines
  • Parameter Packs and std::visit

YOU MIGHT ALSO LIKE

Rating 4.5 of 53 users Rating 4.5 of 53 users (53)
Rating 4.3 of 7 users Rating 4.3 of 7 users (7)
Rating 4.2 of 111 users Rating 4.2 of 111 users (111)