Ch. 2.2: The cout Object Flashcards
cout means what?
console out, (print out to console)
What is a stream object?
Means it works with a stream of data to print a message on the screen.
What is a stream insertion operator?
When the «_space;operator symbol is used to send a string out to the console pointing to cout. Can be used to send more than one item to cout.
What does endl mean?
It is a stream manipulator used to instruct cout to use a new line.
What is an escape sequence?
Allows you to control the way the output is displayed by embedding commands within the string itself.
What is a newline escape sequence?
\n is interpreted as a special command to advance the output cursor to the next line.
What is a horizontal tab escape sequence?
\t causes cursor to skip to next tab.
What is an alarm escape sequence?
\a causes the computer to beep.
What is a backspace escape sequence?
\b causes the cursor to back up or move left one position.
What is the return escape sequence?
\r causes the cursor to go to the beginning of the current line, not the next line.
What is a backslash escape sequence?
\ causes a backslash to be printed.
What is a single quote escape sequence?
' causes a single quotation mark to be printed.
What is a double quote escape sequence?
" Causes a double quotation mark to be printed.