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 LATEX %, 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.