Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #store #array #string #spaces #stl
ADD COMMENT
Topic
Name
7+7 =