Horje
how to read a line from the console in c++ Code Example
how to read a line from the console in c++
#include <string>
std::string str;
std::getline(std::cin, str);
// The output of std::getline(std::cin, str) will be stored in str.




Cpp

Related
reference function in c++ Code Example reference function in c++ Code Example
c++ code for selection sort Code Example c++ code for selection sort Code Example
c++ print vector without loop Code Example c++ print vector without loop Code Example
login system with c++ Code Example login system with c++ Code Example
c++ display numbers as binary Code Example c++ display numbers as binary Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12