The program in post #9 works ok for me after making one small change. You are calling the sort function twice, and not displaying the results after sort is done.
cout << "Here is the sorted values\n";
for(int i = 0; i < MONTHS; i++)
cout << values[i] << " ";
//selectionSort(values, name, MONTHS);