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.
More Related Contents:
- Compiler Crash with C++ Array
- cin using char type array
- I keep getting a segfault every time I run this program, but I cannot understand why
- What is array to pointer decay?
- When a function has a specific-size array parameter, why is it replaced with a pointer?
- How do I find the length of an array?
- Passing an array by reference
- Array[n] vs Array[10] – Initializing array with variable vs numeric literal
- Advantage of switch over if-else statement
- Why are arrays of references illegal?
- c++ array – expression must have a constant value
- char* vs std::string in c++ [closed]
- C/C++ int[] vs int* (pointers vs. array notation). What is the difference?
- C++11: Correct std::array initialization?
- What is the difference between std::array and std::vector? When do you use one over other? [duplicate]
- Why no variable size array in stack?
- What do compilers do with compile-time branching?
- Using assignment as a condition expression?
- Access array beyond the limit in C and C++ [duplicate]
- C++ std::vector vs array in the real world
- How to make an array with a dynamic size? General usage of dynamic arrays (maybe pointers too)? [closed]
- How to print 2D Arrays in C++?
- Initializer list for dynamic arrays?
- Is int arr[ ] valid C++?
- What is the safe way to fill multidimensional array using std::fill?
- In C/C++, is char* arrayName[][] a pointer to a pointer to a pointer OR a pointer to a pointer?
- if / else at compile time in C++?
- Is there a way to statically-initialize a dynamically-allocated array in C++?
- C++ concatenate two int arrays into one larger array
- C++: Fastest method to check if all array elements are equal