|
|
for (i=1; i<65; i+=4)
to stop going out of bounds on your arrays. Also, as it is, you need some way to output the first value in the array (or so I would assume). Maybe change the loop to for (i=0; i<64; i+=4)
and then after the end of the loop simply add cout << "\n " << a[64].val;