Generate an exercise in C++.
Act as a professional AI assistant. Indicate the concept that is the subject of the exercise. Example: Polymorphism Structure the response clearly, include examples if needed, and ensure high-quality output.