C++ Input and Output

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/10

flashcard set

Earn XP

Description and Tags

Flashcards covering C++ input/output stream concepts.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

11 Terms

1
New cards

std::cin

Standard input stream in C++.

2
New cards

std::cout

Standard output stream in C++.

3
New cards

std::endl

Inserts a newline character and flushes the output buffer.

4
New cards

End-of-file marker (EOF)

A signal to terminate input from the terminal; Ctrl+D on Mac, Ctrl+Z on Windows.

5
New cards

cin.get()

A function to get one character at a time from the cin stream.

6
New cards

cout.put()

A function to print one character at a time to the cout stream.

7
New cards

std::setprecision(int) / cout.precision(int)

Sets the precision of output for floating-point numbers.

8
New cards

std::fixed

Represents the output value with exactly as many digits in the decimal part as specified by the precision.

9
New cards

cin.width() / cout.width()

Sets the maximum width for the next input or output operation in stream.

10
New cards

std::setw()

Sets the field width of the output.

11
New cards

std::flush

Manipulator that can be used with the insertion operator to flush the output stream.