Learn C++ by Example
eBook - ePub

Learn C++ by Example

Covers versions 11 to 23

  1. 248 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Learn C++ by Example

Covers versions 11 to 23

About this book

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. Foreword by Matt Godbolt. 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. Table of Contents 1 Hello again, C++!
2 Containers, iterators, and ranges
3 Input of strings and numbers
4 Time points, duration, and literals
5 Creating and using objects and arrays
6 Smart pointers and polymorphism
7 Associative containers and files
8 Unordered maps and coroutines
9 Parameter packs and std: visit

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Perlego offers two plans: Essential and Complete
  • 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.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Learn C++ by Example by Frances Buontempo in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming Algorithms. We have over one million books available in our catalogue for you to explore.

Information

Table of contents

  1. inside front cover
  2. Learn C++ by Example
  3. Copyright
  4. dedication
  5. contents
  6. Front matter
  7. 1 Hello again, C++!
  8. 2 Containers, iterators, and ranges
  9. 3 Input of strings and numbers
  10. 4 Time points, duration, and literals
  11. 5 Creating and using objects and arrays
  12. 6 Smart pointers and polymorphism
  13. 7 Associative containers and files
  14. 8 Unordered maps and coroutines
  15. 9 Parameter packs and std::visit
  16. appendix. Further resources
  17. index