If statement – C++

You need to use a for-loop to iterate over the elements:

for(int i = 0; i < the length of redsigma; ++i) {
    if(redsigma[i] meets conditions) {
    }
}

I recommend that you use std::vector instead of an array.

Leave a Comment