Hello everyone need some help.
I have loaded and 1d array from a .dat file, calculated the average of all the numbers. Now I need to count every number in the array that is below the average and cout that number.
This is the method in the class I have so far:
Use '++' and delete '=ct' from Line 6. My guess is that the last element in you array is a '0' and at Line 6 you are setting 'numBelowAvg' to be that number then you are returning it. While you're at it, ask yourself "What's off about the argument to this member function?".