Hey!
I am trying to write a program that will sort the words in a text after how many times it appears. I am currently having a lot of trouble with it. So far i managed to open the text file and put the words in map and assign a value based on how many times the word appeared. Then i managed to print these out however they where not sorted and the words was not correct either since it was only looking for "space" between words.
Then i moved the words with their value to form "pair" in a vector. I also added a sort function that i think/hope works but i have no idea how to check because i cant for the life of me print the vector.
So what i need help with is a bit of code to print the vector and also som hints/suggestions on where to go from here.