C++20 for Lazy Programmers: Quick, Easy, and Fun C++ for Beginners, Second Edition

  • 7h 6m
  • Will Briggs
  • Apress
  • 2021

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

Who This Book Is For

All who are new to C++, either self-learners or students in college-level courses.

About the Author

Will Briggs, PhD., is a professor of computer science at the University of Lynchburg in Virginia. He has over 20 years' experience teaching C++, and about as many teaching other languages including C, LISP, Pascal, PHP, PROLOG, and Python. His primary focus is teaching of late, while also maintaining research in artificial intelligence.

In this Book

  • Getting Started
  • Images and Sound
  • Numbers
  • Mouse, and if
  • Loops, Input, and char
  • Algorithms and the Development Process
  • Functions
  • Functions, Continued
  • Using the Debugger
  • Arrays and enum
  • Animation with Structs and Sprites
  • Making an Arcade Game: Input, Collisions, and Putting It All Together
  • Standard I/O and File Operations
  • Character Arrays and Dynamic Memory
  • Classes
  • Classes, Continued
  • Operators
  • Exceptions, Move Constructors and =, Recursion, and O notation
  • Inheritance
  • Templates
  • Virtual Functions and Multiple Inheritance
  • Linked Lists
  • The Standard Template Library
  • Building Bigger Projects
  • Esoterica (Recommended)
  • Esoterica (Recommended), Continued
  • Esoterica (Not So Recommended)
  • C
  • Moving on with SDL