Row One = 5Y\D_Q
Row Two = RY3\Y
I want to re-arrange the characters in the rows/columns into an array of characters in the order, [0][0], [1][0], [0][1], [1][1] etc......
So the re-arranged output should be: 5RYY\3D\_YQ
However the output I get is: 5RYY\3D\_YR
Can anyone see anything obviously wrong?
Expand|Select|Wrap|Line Numbers
- int cin =0;
- int rin = 1;
- for (int i=0; i < colcount; i++)
- \\Colcount is calculated elsewhere in the program and in this case = 6 (as there are 6 columns)
- {
- list[cin] = column[0][i];
- list[rin] = column[1][i];
- cin = cin + 2;
- rin = rin + 2;
- }