"weird errors" doesn't tell us anything. What is textArray defned as, and what do you think you are doing here:
Code:
textArray[i][j][k] = ch_holder;
Input string: "::11aa"
Code:
ispunct so k = 1
you didn't actually do anything with k = 0
second if does nothing, because it is punct
ispunct so k = 2
you didn't actually do anything with k = 1
same as before, but with k = 2 and k = 3 for the numbers
isalpha = true, so skip first iff
textarray[ 0 ][ 0 ][ 3 ] = ch
k = 4
isalpha = true, so skip first iff
textarray[ 0 ][ 0 ][ 4 ] = ch
k = 5
When in doubt, walk through it on paper.
Quzah.