Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Change Language
Go to Spaces
Ctrl+Alt+P
#include
#include
#include
using namespace std; int main() { map
people = {{"John", 32}, {"Adele", 45}, {"Bo", 29}}; map
friends = {{"Jenny", 22}, {"Liam", 24}}; people.swap(friends); for (auto person : people) { cout << person.first << " is: " << person.second << "\n"; } return 0; }
Jenny is: 22
Liam is: 24