Hello:
New here, so thanks for any advise on this....
I have a program due by midnite, and having issues with these simple accumulators.
Program is to read in a data file containing grades, accumulate grades into buckets, and print out results.
I'm reading the file fine and creating and array called "grades".
I then loop through the array, and try to increment counters if the grade falls into that bucket. The accumulators are not working, and I don't know why. After execution, all accumulators = 0.
Please advise.....
Thanks, Richard
here is the part of the code that has this loop....
It looks to me like you said grades[i] by mistake in a lot of the spots. Did you mean grades[j] instead?
Also in the future could you highlight your code with tags please? http://www.cplusplus.com/articles/z13hAqkS/