Char or String?
<p>Does it matter if I use a string or char for a simple input function? (aka y/n)</p> 

<p>This is what I'm using at the moment:</p>

<pre><code>using namespace std;

string somestr;

getline(cin,somestr);

if(somestr.empty())
{ //do something }
else if (somestr == "y"){
//do something else
}
else{}
</code></pre>

<p>And if it makes more sense to user char what would be the equivalent char code to this?</p>
