fork download
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <string>
  4.  
  5. bool f()
  6. {
  7. std::string _record = "adam";
  8. std::string query = "adam";
  9. int value = _record.compare(query);
  10. return value == 0;
  11. }
  12.  
  13. int main()
  14. {
  15. std::cout << std::boolalpha << f();
  16. }
Success #stdin #stdout 0s 3472KB
stdin
Standard input is empty
stdout
true