
Include a block comment
at the beginning of each
source file that identifies
the author of the program
and briefly describes the
function of the program.
SOFTWARE
ENGINEERING TIP
2.2 Data Types,Variables,and Constants 45
code a few comments that identify yourself as the author and briefly
describe what the program does.
The second way to include comments in your code is to precede the com-
ment with two forward slashes (//). There are no spaces between the for-
ward slashes. The compiler ignores everything from the two forward
slashes to the end of the line. In Example 2.1, the compiler ignores all of
line 8, but only the part of line 6 after the two fo