Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

Finding the first occurance of the word in C++

#include <iostream>  
  #include <string>  
  using namespace std;  
    
  int main()  {  
     string s1 = "this is a test";  
     int n;  
    
     n = s1.find_first_of("is");  
     cout << n << endl;  
    
     return 0;  
  }