[Cs3] Correction in Student class
Md. Islam
mislam4 at kent.edu
Sat Sep 22 16:09:33 EDT 2018
There is a problem in student class. Right now the less than function is as
following:
friend bool operator< (Student left, Student right){
return left.lastName_ < right.lastName_ ||
(left.lastName_ == right.lastName_ &&
left.firstName_ < left.*lastName_*);
}
It should be:
friend bool operator< (Student left, Student right){
return left.lastName_ < right.lastName_ ||
(left.lastName_ == right.lastName_ &&
left.firstName_ < left.*firstName_*);
}
Thanks
Tamim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://listmail.cs.kent.edu/pipermail/cs3/attachments/20180922/fec1f4db/attachment.html
More information about the cs3
mailing list