1. 2Write the code to create a map and use the insert member function to insert the following pairs in it: (3, 10), (5, 12), and (7, 8).
2. Since the pointers in an array are compatible with random-access iterators, we can use some algorithms defined in the STL with arrays. Write a program that initializes an array of five elements, defines a print function, and uses the for_ each algorithm to print the values in the array.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here