1/13
Flashcards covering key concepts related to input, output, namespaces, strings, and stream manipulation in C++.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
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.
std::string
The C++ string data type in its standard library that represents a sequence of characters.
Append
An operation on strings to add characters to the end of the string.
Compare
An operation on strings to check if strings are equal.
Get length
An operation on strings to retrieve how many characters are within the string.
Indexing
An operation on strings to target certain characters.
The standard header that contains the delcarations of the standard input and standard output.
std::cin
Standard input stream in C++ used to read input from the terminal.
std::cout
Standard output stream in C++ used to display output to the terminal.
std::endl
Inserts a new-line character and flushes the output stream.
getline(stream, variable)
A function that reads an entire line from the input stream.
cin.get()
A function that allows you to get one character at a time from cin.
cin.ignore(size)
A function that is used to ignore a certain amount of characters specified by size.
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.