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;
}
Are there any code examples left?
New code examples in category C++