title: strcmp or string::compare?
body: <p>I want to compare two strings. Is it possible with <code>strcmp</code>? (I tried and it does not seem to work). Is <code>string::compare</code> a solution?</p>
  
  <p>Other than this, is there a way to compare a <code>string</code> to a <code>char</code>?</p>
  
  <hr>
  
  <p>Thanks for the early comments. I was coding in C++ and yes it was <code>std::string</code> like some of you mentioned.
  I didn't post the code because I wanted to learn the general knowledge and it is a pretty long code, so it was irrelevant for the question. </p>
  
  <p>I think I learned the difference between C++ and C, thanks for pointing that out. And I will try to use overloaded operators now. And by the way <code>string::compare</code> worked too.</p>