[Cs3] Correction in Student class
Mikhail Nesterenko
mikhail at cs.kent.edu
Mon Oct 1 18:23:21 EDT 2018
This is fixed, btw,
--
Mikhail
Tamim Islam wrote:
> CS3 student,
>
> The less than function in student class is as following at this moment:
>
> friend bool operator< (Student left, Student right){
> return left.lastName_ < right.lastName_ ||
> (left.lastName_ == right.lastName_ &&
> left.firstName_ < *left*.firstName_);
> }
>
> It should be:
>
> friend bool operator< (Student left, Student right){
> return left.lastName_ < right.lastName_ ||
> (left.lastName_ == right.lastName_ &&
> left.firstName_ < *right*.firstName_);
> }
>
> Thanks
More information about the cs3
mailing list