SyntaxFix
Write A Post
Hire A Developer
Questions
In C++
using namespace std; string my_string {"Hello world"}; string element_to_be_found {"Hello"}; if(my_string.find(element_to_be_found)!=string::npos) std::cout<<"Element Found"<<std::endl;