[cs23021] CS23021 sec003 battleship
Mikhail Nesterenko
mikhail at cs.kent.edu
Thu Oct 21 19:45:16 EDT 2010
> i am just starting the project but i ran into a problem returning the
> location from the pick() function. I getting values for x and y, but how to
> i return both of them to the deploy function?
pick() returns a structure variable of type location that contains both
x and y coordinates.
>
> Also on the deploy function we pass ship[], but dont we also have to pass
> the size for an array?
>
No, becase FLEET_SIZE is a global constant available for all
functions.
Thanks,
--
Mikhail
More information about the cs23021-2
mailing list