title: Determining if one array is contained in another
body: <p>How do I determine if one array is contained (element by element and in order) in another array?  I have written the program below in MSVS 2010 but not too sure how to complete the boolean function that determines if one array appears in the other one</p>
  
  <pre><code>void isContained( int ar1[], int ar2[] );
  
  
  int main( int argc, char** argv )
  {
      ifstream fin1( "one.txt" );
      ifstream fin2( "two.txt" );
  
      int i, j, value1, value2;
      int arr1[ 10 ];
      int arr2[ 10 ];
  
      for ( i = 0 ; fin1 &gt;&gt; value1 ; i++ )
      {
          arr1[ i ] = value1;
      }
  
      for ( j = 0 ; fin2 &gt;&gt; value2 ; j++ )
      {
          arr2[ j ] = value2;
      }
  
      isContained( arr1, arr2 );
  
      system( "PAUSE" );
  }
  
  
  void isContained( int ar1[], int ar2[] )
  {
      ???
  }
  </code></pre>