[Cs3] Correction in Student class

Mikhail Nesterenko mikhail at cs.kent.edu
Mon Sep 24 08:32:43 EDT 2018


I fixed the code in the assignment.

Thanks,
--
Mikhail

Tamim Islam wrote:
> 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


More information about the cs3 mailing list