C++ script - Map associative container | update key value-pairs using 'swap' function and 'find' function.

I used the following resources for colour coding:

https://www.daniweb.com/programming/software-development/code/216345/add-a-little-color-to-your-console-text

------------------------------------------------------------------------------------------

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



-------------------------------------------------------------------------------------------

main.cpp

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.






















Comments

Popular posts from this blog

Python script - Office supply program

2023: Bash script for system administration

Amazon Macie in a nutshell - 2023 AWS service