When trying to output an element of a vector, I get symbol not found errors for operator <<. Here is my code:
string sortline (string line)
{
int position1 = 0;
int position2 = 0;
vector<string> vectorOfWords[100];
for (int i = 0; i<100; i++)
{
position1 = line.find("</span>", position2+1);
position2 = line.find("</span>", position1+1);
vectorOfWords[i] = line.substr(position1, position2);
cout<<vectorOfWords[i]<<endl;
}
return "0";
}
I apologize for the lack of detail, but I'm not sure what other details to give. Please let me know if I'm missing something. Thank you very much!