this program is inputting numbers from a file "input1.txt",stores them in an array then outputs them to screen,my problem is it outputs some additional strange numbers like -9.22596e+061 ,not sure how to fix this
Ah, im sure you need to use a reference on size. (or pointer):
void readScores(ifstream& infile, double scores[], int &size)
Thats why your program do not know when to stop displaying numbers if you have less than 10.
You should do more error handling for mismatching input syntax and so on anyway.
But you want to change size although its a constant? sure? why do you make size a parameter if its a global variable? ohohoh...