title: Can I use != and == in C++ for string comparison without writing my own?
body: <p>What's difference between C and C++ in string comparison in other words?</p>
  
  <p>I came from 'C' camp. I saw program using == to compare strings, I tried to find its overloading program, but did not find one. Does it mean C++ deal with string (char []) naturally with == and !=? <br>
  If I have my own defined String class, would it be same that I can use == and != without defining them? or it applies only to char []? <br> <br>
  Edit: <br>
  It looks like I mixed C's char[] with C++ std::string class. OK, the old question still apply. Some followed questions as below:<br>
  My programs defined char[] variables, but compared with "==" operator. It seemed work. They are C-style string, but work with "==". Did compiler auto-convert them to std::string for me so that the programs worked?<br><br>
  Edit2:<br>
  Here is a working sample.<br></p>
  
  <pre><code>if(name == "") return;
  </code></pre>
  
  <p>where "name" is a MyString class item. It has a construtor with a parameter char*. <br>
  MyString has a public function data(), it returns char* C-style string pointer.<br>
  So, am I comparing MyString objects? or C-style strings?<br>
  Without overload "!=" myself, can I do something like below?</p>
  
  <pre><code>if( name.data() != somes_[i].data() )
  ....
  </code></pre>