I have a function that searches an array for matching titles and outputs that title, but I am getting the error C2679: binary '<<': no operator found which takes a right hand operand of type 'Entry'(or there is no acceptable conversion)
This is the function where the error is
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
void Entrylist::Find() //look up a song in the entrylist
{
char findTitle[36];
cout << "What is the title or artist of the entry to be looked up?";
cin.getline(findEntry, 36);
int thisEntry = FindTitle(findEntry);
if(thisEntry == -1)
cout << findEntry << " not found in current list" << endl;
else
{
cout << "Entry found: ";
cout << entryList[thisEntry]; //ERROR HERE
}
}
You can create a public member function in the class that can be called to print out whatever data members you want to print. It sounds like that's what you might have been doing with Display()?