Can't Read in two strings separated by a space
<p>I am trying to read in two strings separated by a space.</p>

<p>cin>>a;
cin>>b;</p>

<p>This should technically work. I have also used getline but it doesnt seem to work.
It reads in some of the inputs and gets stuck on others</p>

<p><strong>Edit:</strong> Added C++ tag, kept C tag since it's part of the original post.</p>
