Martix reading problem

Dear All,

I am new in C++ and in this forum, I have a problem to understand what the program is doing when try to read a matrix. I do not know what does mean the
part "[%j+number1+number2]" . What is the meaning of the "%" symbol in this part of the code.

1
2
3
4
5
6
7
8
9
10
 if(i<6){
                if(i==j)        self_l[i][j]=width_l[0][0];
                else if(j>5 && j<15)
                                        self_l[i][j]=self_l[j][i]=width_l[0][j%3+1];
                else if(j>14 && j<30)
                                        self_l[i][j]=self_l[j][i]=width_l[0][j%5+4];
                else            self_l[i][j]=self_l[j][i]=nag_complex(0.0,0.0);}




Thanks for your help in advanced
O.
modulo (remainder of integer division)
Topic archived. No new replies allowed.