#include // strlen cstring c library //#include //#include // with using namespace std; //string_find_first_of1.cpp int main() { //compare strchr and string::find_first_of string str1, str2; size_t strLength1; int n1; str2 = "Find First X-Ray X-man X-string "; cout <<" String length : " << str2.length() << endl; strLength1 =str2.find("First"); cout<<" string First @ " << strLength1 << endl; strLength1 =str2.find_first_of("X-Ray"); n1 = strLength1; cout<<" string X-Ray @ " << strLength1 << " length "<< n1 <