Matthew Chan
2005-01-22 02:41:48 UTC
Hi all,
To what extend do I have to comment my code? Can I do the following
just above my method? Or do I have to comment every line of my code?
/* Public power
* Purpose the calculate the power of the Rational number
* Input an integer n representing the power to be raised to
* Output a new Rational number calculated by the Rational number
raised to a power
*/
To what extend do I have to comment my code? Can I do the following
just above my method? Or do I have to comment every line of my code?
/* Public power
* Purpose the calculate the power of the Rational number
* Input an integer n representing the power to be raised to
* Output a new Rational number calculated by the Rational number
raised to a power
*/