K
KL
I have the following function:
void fillvaluecheck (int valuecheck[], int size){
for (int m = 0; m < size; m++){
cout << valuecheck[m] << endl;
valuecheck[m] = 0;
cout << valuecheck[m] << endl;
}
return;
}
I have the two cout statements only to verify that the function was
working correctly. Well, it is not doing anything that I can tell. I
want to fill my valuecheck array with all zeros. What am I possibly
doing wrong?
KL
void fillvaluecheck (int valuecheck[], int size){
for (int m = 0; m < size; m++){
cout << valuecheck[m] << endl;
valuecheck[m] = 0;
cout << valuecheck[m] << endl;
}
return;
}
I have the two cout statements only to verify that the function was
working correctly. Well, it is not doing anything that I can tell. I
want to fill my valuecheck array with all zeros. What am I possibly
doing wrong?
KL