M4S1 Flashcards
In C++, input and output (I/O) operators are used to X
take input
and display output.
The operator used for taking the input is
known as the X or get from operator (»)
extraction
the
operator used for displaying the output is known as the
X or put to operator (
insertion
The standard C++ library includes the header file X,
where the standard input and output stream objects are
declared.
iostream
is commonly known as the output
operator
Insertion operator (
The standard output by default is the screen, and the C++ stream
object defined to access it is
cout.
Multiple insertion operations (
chained in a single
statement
a new-line
character can be specified as X
\n
X are used
to represent certain special
characters within string literals and
character literals
Escape codes/sequences
X is commonly
known as the input operator.
Extraction operator (»)
The standard input by default is the
keyboard, and the C++ stream object
defined to access it is X
cin
is a standard library
function in C++ and is used to
read a string or a line from input
stream.
getline()
is a standard library function in C++ and is used
to read a string or a line from input stream
getline()