Single-line comments
Single-line comments, indicated by //, can begin anywhere on a line.
Everything from that point to the end of the line is a comment that is ignored by the compiler.
Two examples of single-line comments follow:
int main()//A single-line comment
//Another single-line comment
Listing 5 contains numerous comments, which are used to explain various aspects of the program.
The comments are also used in some cases in Listing 5 to explain the format of comments.