Witam,

co mam wstawić do while(...) aby program zamienił mi wszystkie litery "a" na "b"?

Proszę o pomoc.

 
  size_t found;

  string base="this is a test sising.";

  string str=base;              
 

  found=str.find(" ");
  while(!str.end())
  {
	str.replace(int(found),0,"");
	cout << str << endl;
	found=str.find(" ",0+(int(found)));
        cout << int(found) << endl;
  	
  }