Reputation: 8534
Is there any default function in C++ to search for a word in a string?
Upvotes: 0
Views: 150
Reputation: 437904
That would be strstr
if you want a plain function to work with char*
, std::string::find
if you work with std::string
.
Upvotes: 3