[cs23021] Lab9 question

Mikhail Nesterenko mikhail at cs.kent.edu
Tue Oct 26 21:32:33 EDT 2010


> Is it necessary for us to add another member function to the "fleet" class
> which checks to make sure that ships with the same locations will not be
> deployed? Or is there already a way to do this with the current member
> functions?

The function

   deployFleet(void)

should deploy ships such that no two are at the same location. So all
the logic of checking for duplicates from the previous project should
be moved there. I do not believe you need a separate function for
duplicate check.

thanks,
-- 
Mikhail


More information about the cs23021-2 mailing list