Technical requirements
All the code in this chapter uses standard C++, which builds on any modern C++ 17 or later compiler and standard library. Future chapters will require C++ 20 but for now, only C++ 17 is needed. The number refers to the year that the standard was approved and finalized, so C++ 17 was released in 2017 and C++ 20 was released in 2020. Each release adds new features and capabilities to the language.
The code we’ll be working with starts with an empty console project with a single source file called main.cpp
.
If your development environment gives you a “Hello, world!” project when starting a new command line or console project, you can delete the contents of the main.cpp
file because this chapter will start from the very beginning with an empty file.
You can find all the code for this chapter at the following GitHub repository: https://github.com/PacktPublishing/Test-Driven-Development-with-CPP.