Intermediate · Included in Ascent
Classes and invariants, const correctness, operator overloading, lambdas with the standard algorithms, hash maps and sets, exceptions, string streams, enum class, pointers, unique_ptr and RAII: everyday professional C++14, on a railway's live data.
You've joined the small software team at Northwind Rail, a regional train operator in Manchester. Saanvi, the lead engineer, needs the delay feed, the platform boards and the seat bookings rewritten in fast, safe C++.
struct and class, invariants, const methods and operator overloading.
Lambdas with sort, find_if and count_if, accumulate and transform, unordered_map and set.
Exceptions, your own exception types, string streams and enum class.
Pointers and nullptr, std::unique_ptr, RAII, then the capstone.
Pass every lesson and the capstone, then the 15-question final quiz, to earn your C++ Intermediate certificate with a link anyone can verify.
Unit testing in C++ with doctest and CTest
How to write and run C++ unit tests: test cases, CHECK vs REQUIRE, floating-point comparisons, testing exceptions, and running groups of tests with CTest labels.
Classes, structs and enums in C++: protecting your data
When to use a struct and when a class, constructors that validate, const member functions, enum class, and splitting code into headers and source files.
Choosing a C++ container: vector, map, unordered_map, deque and list
A practical guide to the standard C++ containers: what each is good at, what its operations cost, iterator invalidation, and how real projects combine them.
Sorting and searching in C++: comparators, tie-breaks and lower_bound
Sort with comparators, make output deterministic with tie-breaks, sort by several keys, find the top N, use lower_bound, and solve problems greedily from a table.
Strings in C++: std::string, string_view and parsing text safely
How to work with text in modern C++: std::string vs std::string_view, splitting and trimming, converting numbers strictly, UTF-8 basics, and parsers built as state machines.
Time and dates in C++: chrono, clocks and testable time
Durations and clocks with std::chrono, passing the current time in so tests control it, times of day across midnight, and validating calendar dates with leap years.
Error handling in modern C++: optional, exceptions and result codes
When to return std::optional, when to throw, and when to return a result code, with examples. Plus [[nodiscard]], validating at the edges and keeping state consistent on failure.
Files and streams in C++: reading lines, binary data and safe writes
Read from std::istream so tests can use strings, process input line by line, build a console loop, write binary records, detect torn writes and replace files atomically.