[Cs3] Question About Last Lab

Mikhail Nesterenko mikhail at cs.kent.edu
Wed Dec 2 23:01:36 EST 2015


> I wonder if I should save the all Person's in the vector for traversal
> search or just pass the last person as a Pointer into function to check the
> relations between two names?

This would not help you much since visitor does not have control over
the order of traversal. I suggest coding visitor to check if the
currently visited name matches one of the candidates and if it does,
checking all the illegal relationships for this candidate.

Thanks,
--
Mikhail


More information about the cs3 mailing list