Book description
Ready to learn programming with less effort and more fun? Then do it the lazy way! C++20 for Lazy Programmers uses humor and fun to make you actually willing to read and eager to do the projects as you master the popular and powerful C++ language. Along the way it includes many features from the new C++20 standard, such as ranges, spans, format strings, the “spaceship” operator, and concepts (template parameter requirements), and provides brief introductions to modules and coroutines.
With this unique method, you’ll stretch your abilities with a variety of projects, including your own C++ arcade game. You'll construct your own classes, templates, and abstract data types. After reading and using this book you’ll be ready to build real-world C++ applications and game projects on your own.What You Will Learn:
- The brand-new C++20 standard
- Programming graphics and games with the SDL library, using SSDL, the "Simple SDL" wrapper library
- How to use the most common C++ compilers -- Visual Studio for Windows, and g++ (with Unix or MinGW) -- and their associated debuggers
- “Anti-bugging” for easy fixes to common problems
- Sound practices for becoming a productive programmer
- How to make your own big projects, including a C++-based arcade game
- The built-in Standard Template Library (STL) functions and classes for easy and efficient programming
- Powerful data types including strings, stacks, vectors, and linked lists -- not by reading about them but by building them -- preparing you further for a career in programming
Table of contents
- Cover
- Front Matter
- 1. Getting Started
- 2. Images and Sound
- 3. Numbers
- 4. Mouse, and if
- 5. Loops, Input, and char
- 6. Algorithms and the Development Process
- 7. Functions
- 8. Functions, Continued
- 9. Using the Debugger
- 10. Arrays and enum
- 11. Animation with structs and Sprites
- 12. Making an Arcade Game: Input, Collisions, and Putting It All Together
- 13. Standard I/O and File Operations
- 14. Character Arrays and Dynamic Memory
- 15. Classes
- 16. Classes, Continued
- 17. Operators
- 18. Exceptions, Move Constructors and =, Recursion, and O notation
- 19. Inheritance
- 20. Templates
- 21. Virtual Functions and Multiple Inheritance
- 22. Linked Lists
- 23. The Standard Template Library
- 24. Building Bigger Projects
- 25. Esoterica (Recommended)
- 26. Esoterica (Recommended), Continued
- 27. Esoterica (Not So Recommended)
- 28. C
- 29. Moving on with SDL
- Back Matter
Product information
- Title: C++20 for Lazy Programmers: Quick, Easy, and Fun C++ for Beginners
- Author(s):
- Release date: December 2020
- Publisher(s): Apress
- ISBN: 9781484263068
You might also like
book
C++ for Lazy Programmers: Quick, Easy, and Fun C++ for Beginners
Learn C++ the quick, easy, and “lazy” way. This book is an introductory programming text that …
book
SDL Game Development
If you’re good with C++ and object oriented programming, this book utilizes your skills to create …
book
Hands-On Design Patterns with C++
A comprehensive guide with extensive coverage on concepts such as OOP, functional programming, generic programming, and …
book
C++20 Quick Syntax Reference: A Pocket Guide to the Language, APIs, and Library
This quick C++ 20 guide is a condensed code and syntax reference to the popular programming …