It's dinner time at the pet shop, and every pet gets called by name. The range-for is ready; inside it, show a line like Dinner time, Mimi!, one line per pet.
Dinner time, Mimi! Dinner time, Bao! Dinner time, Coco!
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
vector<string> pets = {"Mimi", "Bao", "Coco"};
for (const string &pet : pets) {
// your code here: show Dinner time, the name and an exclamation mark
}
return 0;
}
Run tries the examples. When they look right, Submit.