Witam. Potrzebuje zrobić find który będzie wyszukiwał mi w secie literki R, i nie mam już pojęcia jak to zrobić może ktoś pomoże
#include <iostream>
#include <set>
#include <string>
#include <iterator>
using namespace std;
int main()
{
string S = "abrakadabra";
set<char> st;
set <char>::iterator z;
int n=S.length();
for(int i=0;n>i;i++)
{
st.insert(S[i]);
}
for (z=st.begin(); z!=st.end(); ++z) cout << *z << " ";
cout<<endl;
set<char>::iterator it = st.find("r");
if (it!=st.end())
{
std::cout << "W kontenrze znajduje sie litera R"<< '\n';
}
return 0;
}