chap 2 notes 14 - comment) that must end with a */ . Use...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
14 Comments Comments Two slashes “ // ” signify the beginning of an end of line comment (a.k.a. C++ style comment). Anything following the pair of slashes up to the next carriage return is treated as a comment. if(month>12) { // Invalid month! Alternatively, the /* begins a delimited comment (a.k.a. C style
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: comment) that must end with a */ . Use these delimiters to place comments within a line or to have comments that can spread across several lines. area /*sqf*/ = length /*ft*/ * width /*in*/ / 12.0; /*in/ft*/ A word of caution: Do not forget the closing comment delimiter, */ !!!...
View Full Document

This note was uploaded on 11/16/2011 for the course COP 2271 taught by Professor Staff during the Fall '11 term at University of Florida.

Ask a homework question - tutors are online