C++ exercises with solutions
48 practice problems from the 16 lessons of the C++ Programming course, in lesson order and from easy to hard inside each lesson. Open a problem, write your code and press Submit: the tests run in your browser and nothing is sent to a server.
16 easy problems 16 medium problems 16 hard problems
Your first C++ program
3 problems · Read the lesson
Variables and types in C++
3 problems · Read the lesson
Input and output in depth
3 problems · Read the lesson
Decisions and loops
3 problems · Read the lesson
Functions in C++
3 problems · Read the lesson
References
3 problems · Read the lesson
The string class
3 problems · Read the lesson
Vectors
3 problems · Read the lesson
Pointers and memory
3 problems · Read the lesson
Structs and your first class
3 problems · Read the lesson
Maps and sets
3 problems · Read the lesson
Stacks, queues and pairs
3 problems · Read the lesson
Iterators and algorithms
3 problems · Read the lesson
Templates
3 problems · Read the lesson
Exceptions and files
3 problems · Read the lesson
Modern C++
3 problems · Read the lesson