text: C++ uses notations that may appear strange to nonprogrammers. We now consider a simple program that prints a line of text (Fig. 2.1). This program illustrates several important features of the C++ language. We consider each line in detail.
  Figure 2.1. Text-printing program.
  (This item is displayed on page 38 in the print version)theypossibly containing many linesbegins with the pair of characters /* and ends with */.]
  Good Programming Practice 2.1
  Line 3
  #include //. 4.3.++! "; // display message++! to the standard output stream objectstd::coutwhich is normally "connected" to the screen. We discuss std::cout's many features in detail in Chapter 15, Stream Input/Output.
  Notice that we placed std:: before cout. This is required when we use names that we've brought into the program by the preprocessor directive #include . The notation std::cout specifies that we are using a name, in this case cout, that belongs to "namespace" std. The names cin (the standard input stream) and cerr (the standard error stream)introduced in Chapter 1also belong to namespace std. Namespaces are an advanced C++ feature that we discuss in depth in Chapter 24, Other Topics. For now, you should simply remember to include std:: before each mention of cout, cin and cerr in a program. This can be cumbersome quotes. Notice, however, that the characters means newline. It causes the cursor (i.e., the current screen-position indicator) to move to the beginning of the next line on the screen. Some other common escape sequences are listed in Fig. 2.2.
  Common Programming Error
  Good Programming Practice 2.4
  Good Programming Practice 2