Doing a simple class with names and ID numbers. In main I created a object array named roster and in main I am trying to search the array to print out the name or the id if the other is entered. However When I compile the I get an error
no match for 'operator==' in 'roster[i].Student::getId == search'
both member variables are strings and are private.
attempting the following
Thanks for any input.Code:if (roster[i].getId == search)