4 Replies Latest reply on Jun 3, 2010 11:20 PM by Zoltan.Maric

    Accessing elements of a vector in a loop



      Is there any way to access vector elements in a loop with a variable?

      I'm looking for something like this:

      int16 temp;
      for (i = 0; i < 16; i++){
      temp.s(i)= i;

      or do i have to do it like this

      temp.s0 = 0;
      temp.s1 = 1;