Because I'm nice and its due tomorrow, here's part of my code:
Code:
while( i < sent.size() )
{
switch( sent[i] )
{
case 'a':
acount++;
break;
}
i++;
}
And to only show the letters that actually appear more than 0 times:
Code:
if( acount )
cout << "a = " << acount << endl;