1/10
Flashcards covering C++ input/output stream concepts.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
std::cin
Standard input stream in C++.
std::cout
Standard output stream in C++.
std::endl
Inserts a newline character and flushes the output buffer.
End-of-file marker (EOF)
A signal to terminate input from the terminal; Ctrl+D on Mac, Ctrl+Z on Windows.
cin.get()
A function to get one character at a time from the cin stream.
cout.put()
A function to print one character at a time to the cout stream.
std::setprecision(int) / cout.precision(int)
Sets the precision of output for floating-point numbers.
std::fixed
Represents the output value with exactly as many digits in the decimal part as specified by the precision.
cin.width() / cout.width()
Sets the maximum width for the next input or output operation in stream.
std::setw()
Sets the field width of the output.
std::flush
Manipulator that can be used with the insertion operator to flush the output stream.