|
for (i = 0; i <11; i ++)
{for (j = 0; j <9; j ++)
{
printf (Caption, "% 03d", i + i * j);
btnCreateText (xmembutton, i + i * j, 0 + j * 40, 0 + i * 22,40,22,1,0,&fi8x16, Caption, 255, i + i * j, Caption, 0,0xE0);
btnDisplay (xmembutton, i + i * j);
}
}
I use two loops to display the array, btnCreateText is to create a button, and Caption is the value displayed on this button! I am puzzled by i + i * j. Some calculations are not correct! Essentially, the order of the values of an array! |
|