get an array with c++ code example Example: get an array with c++ int arr[5]; for(int i=0;i<5;i++) { cin>>arr[i]; }