Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#include <iostream> #include <map> using namespace std; int main() { map<string, int> people = { {"John", 32}, {"Adele", 45}, {"Bo", 29} }; // Change John's value to 50 instead of 32 people.at("John") = 50; cout << "John is: " << people.at("John"); return 0; }
John is: 50