I have a class called "Students" one of the variables is a string that contains the student's name.
I want to overload the ">" operator so it tests to see if the first student's name is longer than the second student's name and I want it to return a bool (true or false) value.
bool operator>(Students student1, Students student2)
{ //code to compare the two strings}
I keep getting an error that says I have too many parameters.
agelater). Implement insteadname_comparatorclass template. Likewise,age_comparatorif you need later! - Nawaz