Unordered map and files

I need to let user fill unordered map, write this map in file and then read and use this info from file
Here is a way you could break the problem down into manageable pieces. Each step should result in a working program that you can test.

Start by writing code that will read input from the user and print it out.

Then modify the program to put the user input into an unordered map and print the contents of the map.

Add code to write the map to a file. Hopefully you can reuse the code that printed it.

Now write code to read the map from the file. Print the contents of the map after reading it.

Finally, add code to use the info from the file.
Topic archived. No new replies allowed.