title: How to compare two strings in C++
body: <p>Lets say I have string a and string b
  I know I have to use a.equals(b) to compare two strings but in C++, it looks like I can directly use if(a==b)..., and I also found that string has a compare() fuction, so which one should I use, == or compare() </p>