First example (waits until you enter something):
#include <iostream>
using namespace std;
int main()
{
string INPUT;
cin>>INPUT;
return 0;
}
Second example (whatever you enter first it takes):
#include <iostream>
using namespace std;
int main()
{
string INPUT;
getline (cin, INPUT);
return 0;
}
Between the two of them, I only changed 1 line.
:)