hi all,

suppose i've a string that has abc like:
Code:
string str;
cin>>str;        // user enters abc
for(int i=0; i<str.length(); i++)
{
          //compare if str has 'a'
         // loop continues till find all character by character
}
is it possible with string class to find character by character?


thanks..