title: Cannot convert ‘std::string’ to ‘const char*
body: <p>Hi can any one tell what wrong with this code ?.</p>
  
  <pre><code> string s=getString(); //return string
  
      if(!strcmp(s,"STRING")){
           //Do something
      }
  </code></pre>
  
  <p>while compiling I am getting the error like</p>
  
  <pre><code>error: cannot convert ‘std::string’ to ‘const char*’ for argument ‘1’ to ‘int strcmp(const char*, const char*)’|
  </code></pre>