fork(25) download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. void find_and_find_first_of(const std::string& haystack, const char* needle) {
  5. std::cout << haystack.find(needle) << '\t'
  6. << haystack.find_first_of(needle) << '\n';
  7. }
  8. int main(int argc, char** argv) {
  9. find_and_find_first_of("abc", "");
  10. find_and_find_first_of("a", "");
  11. find_and_find_first_of("", "");
  12. }
Success #stdin #stdout 0s 3272KB
stdin
Standard input is empty
stdout
0	4294967295
0	4294967295
0	4294967295