By watching the codes and reading your explanation I start to get it but I wonder what
does and means (the ++)Code:currentIndex++;
I have to echo ArtOfWarfare's sentiment that you should probably read up on C if you don't know what this operator does (increments the variable by 1).