Lines 1 and 2

// Fig. 2.1: fig02_01.cpp// Text-printing program.

each begin with //, indicating that the remainder of each line is a comment. The comment Text-printing program describes the purpose of the program. A comment beginning with // is called a single-line comment because it terminates at the end of the current line. [Note: You also may use comments containing one or more lines enclosed in /* and */.]

Get C++11 for Programmers, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.