Skip to content

Glossary: Coding Interviews in C++

std::getline

Also written: std::ifstream, std::istringstream, std::stod

Tools for reading text in the take-home. `std::ifstream` opens a file, `getline` reads up to a delimiter such as a newline or comma, `std::istringstream` reads from a string, and `std::stod` turns text into a double.

Where the book teaches it

Related terms

CSV (comma-separated values)