over the past week i have been trying to create a program that reads in two text files. Then the inverse index should produce the following set of key:value pairs
{‘my’:[1,2], ‘dog’:[1,2], ‘has’:[1], ‘no’:[1,2], ‘nose’:[1], ‘wants’:[2], ‘bone’:[2]}
i have been trying to do this with out using the container map and vector and only using the header files: iostream,fstream,cmath and string
i know how to read and search text files and i have been been researching so much but there is no piece of code that i have been able to find to help me create this program. So if you could please help me i would really appreciate it?