fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. auto wstring haystack = wstring(L"\\\\REGISTRY\\MACHINE\\SOFTWARE\\WOW6432Node\\Data\\0\\Path");
  6. auto wstring needle = wstring(L"\\\\WOW6432Node\\Data\\0\\Name");
  7. auto bool found = haystack.find(needle) != haystack.npos;
  8. cout << found << endl;
  9. return 0;
  10. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
0