title: Can strcmp() work with strings in c++?
body: <p>I have this line of code</p>
  
  <pre><code>if(strcmp(ob[i].getBrand(), ob[j].getBrand()) &gt; 0)
  </code></pre>
  
  <p>and I get this error</p>
  
  <blockquote>
    <p>error C2664: 'strcmp' : cannot convert parameter 1 from 'std::string' to 'const char *'</p>
  </blockquote>
  
  <p>Does that mean that strcmp doesnt work with strings, but instead it has to convert it to char?</p>