std::string str;
std::getline( std::cin, str);
More Related Contents:
- c++ if specific words from string
- std::cin input with spaces?
- Press Enter to Continue
- cin.getline() is skipping an input in C++ [duplicate]
- Read whole ASCII file into C++ std::string [duplicate]
- How can I convert a std::string to int?
- std::string formatting like sprintf
- Legality of COW std::string implementation in C++11
- printf with std::string?
- How to get rid of `deprecated conversion from string constant to ‘char*’` warnings in GCC?
- Difference between string and char[] types in C++
- Why does stringstream >> change value of target on failure?
- how to check if given c++ string or char* contains only digits?
- How do I check if a C++ std::string starts with a certain string, and convert a substring to an int?
- Why I cannot cout a string?
- C++ string to double conversion
- How to call a function by its name (std::string) in C++?
- Set precision of std::to_string when converting floating point values [duplicate]
- Similar String algorithm
- Custom manipulator for C++ iostream
- Why is there no support for concatenating std::string and std::string_view?
- What encoding does std::string.c_str() use?
- How to compare strings
- equivalent of Console.ReadLine() in c++
- How to write an object to file in C++
- Memory-efficient C++ strings (interning, ropes, copy-on-write, etc) [closed]
- converting narrow string to wide string
- convert string to integer in c++
- What’s the difference between istringstream, ostringstream and stringstream? / Why not use stringstream in every case?
- Assign a string literal to a char* [duplicate]