Answers for "how to store array of string with spaces in c++ stl"

C++
0

how to store array of string with spaces in c++ stl

#include <iostream>
#include <string>

using namespace std;

int main()
{
string input;
getline(cin, input);

cout << "You entered: " << input << endl;
}
Posted by: Guest on June-19-2021

Browse Popular Code Answers by Language