i created this code, so it can take the values from a infile into an array. i have 2 functions, one that will take the values from the infile and filled up the array while keeping a running count of the number of values stored in the array. with a length variable. Another function that sets the elements of passing to True whenever the parallel value of scores is 25 or above.
everything seems to be working up to the point when its time to use the boolean array in the second function. the first part seems to work fine, its showing a count of 8 values stored into the scores array.
but i dont see the second part not activating at all.
using namespace std;
void getData(ifstream&,int , int&);
int processPass(bool ,int , int&);
int length= 0;
cout<<"File not found";
getData(infile, scores, length);
void getData(ifstream &infile, int scores, int &length)
int processPass(bool passing,int scores, int &length)
if ( scores[length] >= 35)