Learn C++ by Example

you own this product
Covers versions 11 to 23
  • February 2024
  • ISBN 9781633438330
  • 248 pages
  • printed in black & white
Look inside
Learn the latest features of modern C++ by coding eight engaging projects.

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.

what's inside

  • New C++ features from C++ 11 to 23
  • Effectively test your C++ code
  • What happens “under the hood”
  • Efficient algorithms and data structures

about the reader

Requires beginner to intermediate C++ 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.

Familiarity, and then mastery, sneak up on you as you work your way through. Suddenly you find yourself to be proficient!

Guy Davidson, BSI Chair of Programming Languages

Breaks down new C++ features in a friendly and approachable way—something even experienced C++ developers can benefit from! Very enjoyable.

Nina Dinka Ranns, C++ committee secretary

The hands-on approach and mini-projects will bring you both joy and insight.

Sy Brand, Microsoft

A tour de force of modern C++!

Silas S Brown, Oracle

A great book! The examples show you the most modern code possible.

Andreas Fertig Unique Code GmbH
5
Out of 5.0
A graph showing this site's review totals.
Overall Rating
100%
of customers that
buy this product give
it a 4 or 5-Star rating.
Verified Buyer
“Great value”
Great book
July 15, 2024 by A Reviewer (TW)
“This is the greatest book to learn modern C++ that I ever purchased.”
Verified Buyer
“Great buy”
June 17, 2024 by Raj (CA, United States)
“A much needed book for the C++ community. As someone coming from c++98 and some c++11/14 this book was huge help for me and boosted my understanding of the various nuances of the language amongst different versions. I like the fact that most of the examples are self contained. One glaring omission is modules. I did not find that addressed anywhere really other than that an excellent book to keep and refer in my c++ journey.”
Verified Buyer
“Great deal”
A Great Resource
May 23, 2024 by Rich Y. (CA, United States)
“C++ is a complex language and this book helps cut through the clutter to focus on specifics that are applicable to much real-world development. The examples are relevant, clear, and instructive. Great work!”
Company Choice
good books, good prices, great value
Product Choice
wanted an example driven book on C++ programming
Verified Buyer
“Great buy”
May 20, 2024 by A Reviewer (GB)
“A bunch of relevant examples to understand modern C++”
Company Choice
Good books
Product Choice
I'm interested in Modern C++
Verified Buyer
“Great price”
April 2, 2024 by A Reviewer (Canada)
“This is a great book for university students and professional delving into C++ development.”

choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • Learn C++ by Example ebook for free
choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • Learn C++ by Example ebook for free
choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • Learn C++ by Example ebook for free
loading book ...