My program is suppose to read integer values from a .txt document of scores. It then is suppose to determine how many students have scores within ranges of
0-24
25-49
50-74
75-99
100-124
125-149
150-174
175-200
and then take that number ans store it in a 8 element array. i beleive i am set but cant figure out why it wont read the file in a while loop. If i just use cout its fine.
Why do you think that the program is not reading the file? Did you get the "Input file can't be opened" message? By the way it would probably be wise to stop the program if the file doesn't open.
By the way where are you initializing your score[] array?