next up previous contents index
Next: Pre-Processing Up: C++ Basics Previous: C++ Basics   Contents   Index

Comments

C++ has two types of comments. C-style comments, which may span several lines, are delimited by the strings /* and */. One-line comments, analogous to the LATE%, are begun with //. A one-line comment may appear within a multiline comment, but a C-style comment may not; the compiler will mistake the first */ it encounters as the end of the current multiline comment.



Andrew D. Hwang 2004-09-04