fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. string name = "Bob";
  7.  
  8. if ( name == "Alice" && "Bob" == name ) cout << "true";
  9. else cout << "false";
  10. }
Success #stdin #stdout 0s 3272KB
stdin
Standard input is empty
stdout
false