C++ script - Map associative container | update key value-pairs using 'swap' function and 'find' function.
I used the following resources for colour coding:
------------------------------------------------------------------------------------------
The following script:
- Asks for user input to swap map1 and map2 key-value pairs using the 'swap' function.
- Asks for user input to swap map1 and map2 key-value pairs using the 'find' function.
This program was created using Visual Studio for the IDE.
To view an image below clearly, you may right click > open image in new tab> in the new tab, your cursor will turn into a crosshair symbol > left click > will zoom in on script.
-------------------------------------------------------------------------------------------
OUTPUT
-------------------------------------------------------------------------------------------
Comments
Post a Comment