cout<<"\naverage of these numbers: "<<ave<<endl;
You are not passing any of you parameters in ave. I am surpised it is compiling at all. Should look like ave(array, 10).
Reputation Points: 11
Solved Threads: 2
Junior Poster in Training
Offline 56 posts
since Sep 2004