String error

I started a project,which is like google's text to speech but i cant find a way to search for a specific letter inside the string i have.

string letter = "c";
string text;
cout << "Fuck you World, give me text : " ;
cin >> text;
if (find("c") != string::npos) {
cout << "found!" << '\n';
}


It says to me : error : no matching function to call to 'find(const char [2])'
What shall i do?
you would need to use text.find("c")
Thanks rafae11
Topic archived. No new replies allowed.