Title: Comment Statement
Course: CPS 120: Introduction to Computer Science ~ Master (Aug/2015) OLD > Section: Learning Units

Visual C++ comment statement

- A Visual C++ comment is any line or part of line that begins with two forward slashes (//).
- The two types of comments are a single line comments using // and multi-line comments using /*   ..... */

Comment syntax:

// <comment>
Or
<Visual C++ statement> // <comment>

Comment Examples

// Here is a whole-line comment
print ("Hello!") // Here is an end-of-line comment