#include <iostream>
#include <string>
using namespace std;
int main()
{
string x;
cout<<"Enter Text : "<<endl;
cin>>x;
getline(cin,x);
cout<<"The text entered was, ";
cout<<x;
system("PAUSE");
return 0;
}
Output that I get when I enter 1 word :
Enter Text :
LOL
The text entered was,
Press any key to continue . . .
Output I get when I enter 2 words :
Enter Text :
LOL LMFAO
The text entered was, LMFAO
Press any key to continue . . .
This is the issue, any help will be greatly appretiated. Thanks !