


1/10/00
COM1100-Winter2000-Yuhong
Yin Northeastern
University
cout << "Hello,
World\n";
n– The two character \ and n, when used
together ( \n ), is called
a newline escape sequence. They tell cout to
send instruction to the display device to move to a new line.
n– In C++, the
backslash ( \ ) character provides an “escape” from the normal interpretation of
the character following it by altering the meaning of the next
character.
n
n
n