[cs23021] Battleships lab

Mikhail Nesterenko mikhail at cs.kent.edu
Tue Oct 19 17:54:44 EDT 2010


> I just wanted to point out a possible mistake in the function prototypes in
> your header file. For the functions that have arrays as parameters, I think
> you may have forgotten to place the base type of the array before the array
> name. You instead used the base type for the array name.

What this probably is is an abbreviated form of a function prototype
where the (array) name can be skipped but not the base type. For
example:

	void deploy(ship[]); 

Means that function "deploy" is going to accept an (not named here)
array of base type "ship".

Thanks,
-- 
Mikhail


More information about the cs23021-2 mailing list