fork download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. int main() {
  5. std::string f("hello world");
  6. const char* p = "hello world";
  7.  
  8. if (f == p)
  9. std::cout << "f == p" << std::endl;
  10. }
Success #stdin #stdout 0s 3472KB
stdin
Standard input is empty
stdout
f == p