Mam mały problem, ponieważ chce sobie zamienić 1 znak w stringu na kilka np. "a" na "???" próbowałem użyć tego:
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
string tekst;
cout<<"podaj string ";
getline(cin,tekst);
for(int i=0;i<tekst.length();i++)
if(tekst[i]=='a')tekst[i]='???';
cout<<tekst;
getch();
return 0;
}
lecz nie działa :/