>>write << "\ncirculo # " << (i+1) << ": " << array[pos]+array[size-pos-1];
Variable pos is never changed. I think you should use the loop counter instead of pos.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Online 21,953 posts
since Aug 2005