1. Don't use Dev C++.
2. Use pastebin.
3. After correcting #1 and #2, try asking again.
Now on to the code issues:
1. On line 21, you're checking if infile is NULL. That's always going to be false, because infile is an object on the stack that you created on line 16. Instead, you want to check if infile is not open:
if(!infile.is_open())
However, this is backwards logic. Instead of checking if something is NOT bad in order to do something, you should check if it is good. So instead of checking if it's not open and exiting, check if it IS open and then execute the code for that scenario.
2. On line 25, you're returning from an if statement. This is retarded. Do not use multiple return statements, especially for returning from main. Use the stack to move your execution where it belongs, and terminate execution at the same spot for all paths of executions.
3. On line 47, you're running an infinite while loop, because your condition only checks if your inputFile is not NULL. What you want is to check that it's not at the end of file:
while(!inputFile.eof())
However, this can lead to other issues depending on what's inside the while loop, because you have to attempt to read the eof bit before the eof flag will get activated, which means if your last statement stopped reading the file just before the EOF, then inputFile.eof will return false and your loop will run again.
4. I'm not sure what you're trying to accomplish with the code inside your while loop. From what I can tell, your text file is a list of scores. You're taking in each score and dividing it by 25 to get an index. Then on line 50, if the index is the same as the size of your array, you reduce the index by 1. Then on line 52, if the index is less than the size of the array, you increment the score that was already in that index. Then you read in a new score on line 54. It almost looks like it started to be a hash function, but then it got all stupid. You're not saving any of the actual scores anywhere, which brings me to...
5. You're just doing some math on the score to get an index, and then incrementing the value at that index, which is going to cause problems because you never initialized the elements in your array, so they're storing garbage and you're incrementing that garbage.
6. Okay, there are more issues, and I haven't even begun to look at your print function. I had to stop before I lost more IQ points. Your code is horrid. You have no clue what you're doing. You clearly lack basic logic skills. Yes, new programmers make mistakes, but of all the new programmers I've tutored, these are NOT the types of mistakes future *good* programmers make. These are the types of mistakes made by people who are not cut out to be programmers and eventually fail out of the degree program in school.
Click this link: http://www.kent.ac.uk/careers/tests/computer-test.htm
It is a logic aptitude test. If you can't ace it within the time limit, you have poor logic skills. Logic is EVERYTHING in programming, so if you have bad logic, then you need to get out of programming and find something that will lend itself to your particular skillset, whatever that may be.