I have to write an application in which a text file is read and stored in a vector of strings
vector<string> text;
After that I have to compare each character of text loaded from a file with an array of char with default content
char ARRAY[21] = {... ... ...}
so I thought something like that
for(int i = 0; i < text.size(); i++){
for(int j = 0; j < 21; j++){
if(text[i] == ARRAY[j])
index_t[i] = j;
}
}
at compile time I get the following error:
no match for 'operator==' in '(((std::vector<std::string, std::allocator<std::string> >*)
how can I fix that?