That's not the problem I was talking about. Say numCols is 2. Then:
double oper[2-1]; /* 2 - 1 = 1 */
...
for(c = 0; c < 2 /* loop for element 0 and element 1 */; c++)
... oops, oper[ 1 ] is...
Type: Posts; User: quzah
That's not the problem I was talking about. Say numCols is 2. Then:
double oper[2-1]; /* 2 - 1 = 1 */
...
for(c = 0; c < 2 /* loop for element 0 and element 1 */; c++)
... oops, oper[ 1 ] is...
double oper[numCols-1];
...
for(c = 0; c < numCols; c++)You have a problem there.
Quzah.