title: Softball C++ question: How to compare two arrays for equality?
body: <p>I am trying to compare two int arrays, element by element, to check for equality.  I can't seem to get this to work.  Basic pointer resources also welcome.  Thank you!</p>
  
  <pre><code>int *ints;
  ints = new int[10];
  
  bool arrayEqual(const Object&amp; obj)
  {
      bool eql = true;
  
      for(int i=0; i&lt;10; ++i)
      {
          if(*ints[i] != obj.ints[i])
              eql = false;
      }
  
      return eql;
  }
  </code></pre>