Input and Output I

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

1/13

flashcard set

Earn XP

Description and Tags

Flashcards covering key concepts related to input, output, namespaces, strings, and stream manipulation in C++.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

14 Terms

1
New cards

Namespace

A space to hold different identifiers like function names, object names, class names, etc. It prevents naming collisions by allowing the same name to be defined within different namespaces.

2
New cards

std::string

The C++ string data type in its standard library that represents a sequence of characters.

3
New cards

Append

An operation on strings to add characters to the end of the string.

4
New cards

Compare

An operation on strings to check if strings are equal.

5
New cards

Get length

An operation on strings to retrieve how many characters are within the string.

6
New cards

Indexing

An operation on strings to target certain characters.

7
New cards

The standard header that contains the delcarations of the standard input and standard output.

8
New cards

std::cin

Standard input stream in C++ used to read input from the terminal.

9
New cards

std::cout

Standard output stream in C++ used to display output to the terminal.

10
New cards

std::endl

Inserts a new-line character and flushes the output stream.

11
New cards

getline(stream, variable)

A function that reads an entire line from the input stream.

12
New cards

cin.get()

A function that allows you to get one character at a time from cin.

13
New cards

cin.ignore(size)

A function that is used to ignore a certain amount of characters specified by size.

14
New cards

cin.ignore(size, delim)

A function that is used to ignore a certain number of characters specified by size or until it hits the delimiting character.