title: How to compare a vector of const char[]
body: <p>I have a vector that is composed of const char[] and I want to be able to check if each character array is equal to the rest in the vector. So if this is how I initialize, and then I assign a random const char[] to 5 parts of the vector array, how can I compare them without using ==?</p>
  
  <pre><code>const char sled[]="sled";
  const char car[]="car";
  const char house[]="house";
  const char dog[] ="dog";
  vector&lt;const char[]&gt; vect;
  
  
      if (vect[0]== vect[1]== vect[2]. == vect[3] == vect[4])
      {
      cout &lt;&lt; "They are all equal!"
          return;
      }
  </code></pre>