Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#include
#include
using namespace std; int main() { map
> people = { {"John", 32}, {"Adele", 45}, {"Bo", 29} }; for (auto pair : people) { cout << pair.first << " is: " << pair.second << "\n"; } return 0; }
John is: 32
Bo is: 29
Adele is: 45