1
Reply

3 dimensional array C#

Raga Priyono

Raga Priyono

Jan 9 2015 4:22 PM
819
I have a problem with my  script:

Public partial class Form_Process : Form
{
   Static Object[ , , ] normW = null;
   //3 dimensional variable

   Private void process(){
       for(int i=0; i<3; i++){
          /*bla..bla..bla..
             //..............................
             //my process is here
             //..............................
         */
          //The result of the process
          //is in variable Normali[ , ].
          //Normali is a 2 dimensional array variable.

          //than..
          normalW[i] = Normali;  //this is where an error take place
       }
   }    
}
Error: Wrong number of indices inside []; expected 3


I hope anyone can help me for my error script above.
I'm sorry for my bad english. Thank you.

Answers (1)