I used following command to write number and character on the graphic:
glutBitmapCharacter(GLUT_BITMAP_8_BY_13,c[i][j]+48); .
As you can see, if the value in c[i][j] is bigger than 9, it prints out those special characters and ABCD…
You’re left with the digits 6, 5, and 4. Since were filling up the array from the back, the digits are read in the order: 4, 5, 6.
You could use a stack, if you wanted, to contain the digits. That way you just push each digit as you figure it out then pop them when you want to render. That way, you’d be easily getting them out of the container in the right order.
[This message has been edited by Ostsol (edited 11-29-2003).]
[This message has been edited by Ostsol (edited 11-29-2003).]