hi all,
suppose i've a string that has abc like:
is it possible with string class to find character by character?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 }
thanks..




Reply With Quote