Exercise: Make Cats Meow and Dogs Bark

Let's go through what you’ve learned in this chapter.

We'll cover the following

Problem statement

You’re provided with an enum containing cat and dog types, and a vector of cats and dogs. Loop through the vector, printing “Meow” for cats and “Woof” for dogs.

Coding challenge

We encourage you to try solving it yourself before looking at the solution. Here’s some code to get you started:

Get hands-on with 1400+ tech skills courses.