fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. string str="ahmed";
  7. string str1="sh";
  8. size_t found = str.find(str1);
  9.  
  10. cout<<found;
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5548KB
stdin
Standard input is empty
stdout
18446744073709551615