title: Splitting an array into multiple arrays c++
body: <p>What is the best way to split an array(mainArr) that holds 50 random integers into 5 different arrays that all contain 10 of the integers in each? </p>
  
  <p>For example arr1 holds mainArr's 0-9 values, arr2 holds 10-19.... </p>
  
  <p>I have searched around but everything is splitting the array into two different arrays. 
  Any help would be appreciated. Thanks.</p>