C++ 23 · Input, exceptions and threads
Read a line from the keyboard
Read a whole line, including spaces.
std::string name;
std::getline(std::cin, name);
More input, exceptions and threads commands
- Read a file line by line
- Handle exceptions
- Run code on another thread
- Compute a value in the background
- Share a counter between threads
- Time a section of code
All input, exceptions and threads commands · C++ 23 cheatsheet