Rewrite the code below using the ranged for loop and the auto keyword.
```
map
{1,"Walt"},
{2,"Kenrick"}
};
map
for (iter = personIDs.begin(); iter != personIDs.end();
iter++)
{
cout << iter->first >> " " << iter->second << endl;
}
```
The auto keyword makes it easier to iterate over a collection.
```
for (auto p : personIDs)
{
cout << p.first << " " << p.second << endl;
}
```
You might also like to view...
Before you can use two tables in a form, you must make sure there is a(n) ________ relationship between the tables
Fill in the blank(s) with correct word
You want to erase your startup configuration file. This can be accomplished by issuing which of the following commands?
A) write erase B) move startup-config C) move running-config D) erase running-config E) erase startup-config F) erase nvram G) erase rom