Question: C++ need help with vector. I have a text file and input it's content into a struct that holds an array for each entry as
C++ need help with vector. I have a text file and input it's content into a struct that holds an array for each entry as a string type.
for example:
struct container{
string ID[10000];
string anotherID[10000];
}
in the text file there is a huge list that looks something like this: 1 abc
3 xyz
1 abc
1 xyz
How can I use a vector to sort these so I can get an output like
ID: 1 and anotherID: abc found 2 time(s)
ID: 1 and anotherID: xyz found 1 time(s)
ID: 3 and anotherID: xyz found 1 time(s)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
