/*
This program is made by Skyler Peterson and will request the current user a sale's persons name and
to accumulate the total sales and count the number of sales staff, compute the average sales for all of the staff and
determine the salesperson with the highest sales amount.
*/
int main()
{
const int SIZE = 25;
int Nopeople = 0;
double salesAmount[SIZE];
string salesPersonName[SIZE];
int ctr=0;
ofstream fout("sales.fil");
It looks like you're accessing your arrays out of bounds. You have defined your arrays with a size of SIZE. When you try to access an array as array[SIZE] you access the array out of bounds. Remember arrays in C++ start at zero and end at SIZE - 1.
By the way please use code tags when posting code.