Write a function that, given an istream and a vector <string>, produces a map <string ,vector <int>> holding each string and the numbers of the lines on which the string appears. Run the program on a textfile with no fewer than 1,000 lines looking for no fewer than 10 words.
I could not do the question above. How can I make this question.
If you do not intend to help.Why have this forums.I asked for help from you.
Could you tell me.
please.
This forum is exactly as you say: helping. Not telling answers to homework assignments. Tell us what part of the assignment you don't get and what code you have so far. If you haven't looked into either, I advise you do so right away.
It's funny how a lot of people think they can just post the exact words of their homework assignments online and a stranger will do it for them. They don't even ask anything!
Yes, it's the Beginner section, not the IdontWantToDoMyHomeworkSoGiveMeTheSolution forum
[Edit] You could have used the time you spent complaining to ask a more proper question or to try ho to solve it
1: Show us what you have for the code, firix, and ask what's wrong with it. We will help you fix it without giving a full answer. This is the preferred option around here.
2: Say that you don't know where to start and ask if we could help you with starting, and we may give you a hint in English. I possibly will.
Which would you rather do? It's your choice, but you have to ask one of those two questions or a variant.